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

Unified Diff: mojo/system/channel.cc

Issue 603983003: Mojo: COMPILE_ASSERT -> static_assert in mojo/system and mojo/embedder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 | « mojo/embedder/simple_platform_shared_buffer_posix.cc ('k') | mojo/system/handle_signals_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/channel.cc
diff --git a/mojo/system/channel.cc b/mojo/system/channel.cc
index 3114a59106c9e2b5f5bb3d02ab2ae06cb5dd1ca9..994863f6013018760d817abbb93e28890c70e507 100644
--- a/mojo/system/channel.cc
+++ b/mojo/system/channel.cc
@@ -18,9 +18,9 @@
namespace mojo {
namespace system {
-COMPILE_ASSERT(Channel::kBootstrapEndpointId !=
- MessageInTransit::kInvalidEndpointId,
- kBootstrapEndpointId_is_invalid);
+static_assert(Channel::kBootstrapEndpointId !=
+ MessageInTransit::kInvalidEndpointId,
+ "kBootstrapEndpointId is invalid");
STATIC_CONST_MEMBER_DEFINITION const MessageInTransit::EndpointId
Channel::kBootstrapEndpointId;
« no previous file with comments | « mojo/embedder/simple_platform_shared_buffer_posix.cc ('k') | mojo/system/handle_signals_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698