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

Unified Diff: include/assert.h

Issue 1496163002: [assert] Exclude static_assert macro when using C++ (Closed) Base URL: https://github.com/travisg/lk.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/assert.h
diff --git a/include/assert.h b/include/assert.h
index db77da73ea4e78e43713a7971604ecd9a0caf160..dec406e7af722172081c6dae04f2a65e6ddbe5ec 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -38,6 +38,9 @@
#endif
#define assert(e) DEBUG_ASSERT(e)
+
+#ifndef __cplusplus
#define static_assert(e) STATIC_ASSERT(e)
+#endif
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698