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

Unified Diff: runtime/platform/assert.h

Issue 2418323002: Make fatal out of memory messages uniform. (Closed)
Patch Set: macro Created 4 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 | « no previous file | runtime/platform/hashmap.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 9c810c5b3328efd712d4eb9fc3f87a4501d02182..81cb7f11039c69c22db77fe3af6315dedb29cbd4 100644
--- a/runtime/platform/assert.h
+++ b/runtime/platform/assert.h
@@ -254,6 +254,9 @@ T DynamicAssertionHelper::NotNull(const T p) {
#define UNREACHABLE() \
FATAL("unreachable code")
+#define OUT_OF_MEMORY() \
+ FATAL("Out of memory.")
+
#if defined(DEBUG)
// DEBUG binaries use assertions in the code.
« no previous file with comments | « no previous file | runtime/platform/hashmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698