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

Unified Diff: runtime/platform/assert.h

Issue 2625613002: Implemented basic heap memory allocation tracking in MallocHooks using hooks registered with tcmall… (Closed)
Patch Set: Created 3 years, 11 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 | « runtime/bin/main.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/assert.h
diff --git a/runtime/platform/assert.h b/runtime/platform/assert.h
index 02e0e8f3bc3fac6763d66a52c8f2b6295b74a9a5..f9d86574220d81261b5fa761b3a9f73e5506cf02 100644
--- a/runtime/platform/assert.h
+++ b/runtime/platform/assert.h
@@ -299,6 +299,8 @@ T DynamicAssertionHelper::NotNull(const T p) {
// COMPILE_ASSERT(sizeof(foo) < 128);
//
+namespace dart {
+
template <bool>
struct CompileAssert {};
// Macro to concatenate two tokens. The helper is need to proper expansion
@@ -312,6 +314,7 @@ struct CompileAssert {};
__LINE__)[static_cast<bool>(expr) ? 1 : -1]
#endif // !defined(COMPILE_ASSERT)
+} // namespace dart
#if defined(TESTING)
// EXPECT and FAIL are equivalent to ASSERT and FATAL except that they do not
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698