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

Unified Diff: runtime/platform/assert.h

Issue 11014013: Added slow_assert macro and flag for slow development assertions in the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « no previous file | runtime/vm/assert.h » ('j') | runtime/vm/assert.h » ('J')
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 3ad928c9296825d91c88eb9ec6dfce59ae8c9ff8..d92897dc58163f83d6bdbd00d5575dcedbe2447f 100644
--- a/runtime/platform/assert.h
+++ b/runtime/platform/assert.h
@@ -256,8 +256,7 @@ void DynamicAssertionHelper::NotNull(const T p) {
// DEBUG_ASSERT allows identifiers in condition to be undeclared in release
// mode.
-#define DEBUG_ASSERT(cond) \
- if (!(cond)) dart::Assert(__FILE__, __LINE__).Fail("expected: %s", #cond);
+#define DEBUG_ASSERT(cond) ASSERT(cond)
#else // if defined(DEBUG)
« no previous file with comments | « no previous file | runtime/vm/assert.h » ('j') | runtime/vm/assert.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698