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

Unified Diff: mojo/public/system/core.h

Issue 23913008: C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated file names per review with davemoore@ Created 7 years, 2 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
Index: mojo/public/system/core.h
diff --git a/mojo/public/system/core.h b/mojo/public/system/core.h
index cb405ae1e089d54f8eb37817645e714412b2522f..58b1babde62d7b13d37a84598ade5a7cf941a4a3 100644
--- a/mojo/public/system/core.h
+++ b/mojo/public/system/core.h
@@ -9,6 +9,8 @@
#include <stdint.h>
+#include "mojo/public/system/macros.h"
+
// Types -----------------------------------------------------------------------
// TODO(vtl): Notes: Use of undefined flags will lead to undefined behavior
@@ -253,12 +255,6 @@ MojoResult MojoReadMessage(MojoHandle handle,
namespace mojo {
-// Used to assert things at compile time. (Use our own copy instead of
-// Chromium's, since we can't depend on Chromium.)
-template <bool> struct CompileAssert {};
-#define MOJO_COMPILE_ASSERT(expr, msg) \
- typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
-
struct Handle { MojoHandle value; };
const Handle kInvalidHandle = { MOJO_HANDLE_INVALID };

Powered by Google App Engine
This is Rietveld 408576698