Permalink
Browse files

ASSERT(): abort() on failure to assist debugging.

  • Loading branch information...
1 parent a33118c commit eb6957509edac95fa215a05697543d8f3c89585a @nelhage committed Jul 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bemu.h
View
2 bemu.h
@@ -18,7 +18,7 @@
if(DEBUG >= lev) \
printf("%s:%d: " fmt "\n", __FILE__, __LINE__, ## __VA_ARGS__); \
} while (0)
-#define ASSERT(x) if(!(x)) {LOG("FAILED ASSERT : %s", #x); exit(1);}
+#define ASSERT(x) if(!(x)) {LOG("FAILED ASSERT : %s", #x); abort();}
#else
#define LOG_(lev, fmt, ...)
#define ASSERT(x)

0 comments on commit eb69575

Please sign in to comment.