Use abort() in rarch_assert() to make it debuggable.

SIGABRT is nice.
This commit is contained in:
Themaister 2014-03-27 10:44:23 +01:00
parent 3012284530
commit a3f6904dde

View File

@ -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]))