Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: Source/platform/WebThread.cpp

Issue 813883002: replace COMPILE_ASSERT with static_assert in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: final fixups Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/PODFreeListArena.h ('k') | Source/platform/animation/AnimationUtilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/WebThread.cpp
diff --git a/Source/platform/WebThread.cpp b/Source/platform/WebThread.cpp
index 33a29ab63962034d12e6dc2b54b1345368055b7f..7e367195e719ec032f273c61a6334f21be174366 100644
--- a/Source/platform/WebThread.cpp
+++ b/Source/platform/WebThread.cpp
@@ -15,9 +15,9 @@
namespace {
#if OS(WIN)
-COMPILE_ASSERT(sizeof(blink::PlatformThreadId) >= sizeof(DWORD), Size_of_platform_thread_id_is_too_small);
+static_assert(sizeof(blink::PlatformThreadId) >= sizeof(DWORD), "size of platform thread id is too small");
#elif OS(POSIX)
-COMPILE_ASSERT(sizeof(blink::PlatformThreadId) >= sizeof(pid_t), Size_of_platform_thread_id_is_too_small);
+static_assert(sizeof(blink::PlatformThreadId) >= sizeof(pid_t), "size of platform thread id is too small");
#else
#error Unexpected platform
#endif
« no previous file with comments | « Source/platform/PODFreeListArena.h ('k') | Source/platform/animation/AnimationUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698