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

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

Issue 23913008: C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build error. 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
« no previous file with comments | « mojo/public/bindings/sample/sample_test.cc ('k') | mojo/public/system/macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/system/core.h
diff --git a/mojo/public/system/core.h b/mojo/public/system/core.h
index 9a53a785b23b6965e2eb9883f7e8508d69437888..88f2af5c9423a87672f80df577fd449be83bc472 100644
--- a/mojo/public/system/core.h
+++ b/mojo/public/system/core.h
@@ -9,6 +9,7 @@
#include <stdint.h>
+#include "mojo/public/system/macros.h"
#include "mojo/public/system/system_export.h"
// Types -----------------------------------------------------------------------
@@ -259,12 +260,6 @@ MOJO_SYSTEM_EXPORT 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 };
« no previous file with comments | « mojo/public/bindings/sample/sample_test.cc ('k') | mojo/public/system/macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698