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

Unified Diff: mojo/system/handle_signals_state.h

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/system/channel.cc ('k') | mojo/system/handle_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/handle_signals_state.h
diff --git a/mojo/system/handle_signals_state.h b/mojo/system/handle_signals_state.h
index d76fafb302dd43f416d2b24aca80b6e97811b0da..f442cf51462b354e561baadf03ec0cecbc144a27 100644
--- a/mojo/system/handle_signals_state.h
+++ b/mojo/system/handle_signals_state.h
@@ -41,8 +41,8 @@ struct MOJO_SYSTEM_IMPL_EXPORT HandleSignalsState
// (Copy and assignment allowed.)
};
-COMPILE_ASSERT(sizeof(HandleSignalsState) == sizeof(MojoHandleSignalsState),
- HandleSignalsState_should_add_no_overhead);
+static_assert(sizeof(HandleSignalsState) == sizeof(MojoHandleSignalsState),
+ "HandleSignalsState should add no overhead");
} // namespace system
} // namespace mojo
« no previous file with comments | « mojo/system/channel.cc ('k') | mojo/system/handle_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698