mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
Use abort() in rarch_assert() to make it debuggable.
SIGABRT is nice.
This commit is contained in:
parent
3012284530
commit
a3f6904dde
@ -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]))
|
||||
|
Loading…
Reference in New Issue
Block a user