From a3f6904dde81da3e763b0a211781861132ea0a06 Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 27 Mar 2014 10:44:23 +0100 Subject: [PATCH] Use abort() in rarch_assert() to make it debuggable. SIGABRT is nice. --- miscellaneous.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miscellaneous.h b/miscellaneous.h index e941d41984..233e4c01da 100644 --- a/miscellaneous.h +++ b/miscellaneous.h @@ -55,7 +55,7 @@ #endif #define rarch_assert(cond) do { \ - if (!(cond)) { RARCH_ERR("Assertion failed at %s:%d.\n", __FILE__, __LINE__); exit(2); } \ + if (!(cond)) { RARCH_ERR("Assertion failed at %s:%d.\n", __FILE__, __LINE__); abort(); } \ } while(0) #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))