mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
If RARCH_INTERNAL is not defined, turn rarch_assert into plain assert() call
This commit is contained in:
parent
9d9b0146fa
commit
c37249baf7
@ -69,9 +69,13 @@
|
||||
#define min(a, b) ((a) < (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifdef RARCH_INTERNAL
|
||||
#define rarch_assert(cond) do { \
|
||||
if (!(cond)) { RARCH_ERR("Assertion failed at %s:%d.\n", __FILE__, __LINE__); abort(); } \
|
||||
} while(0)
|
||||
#else
|
||||
#define rarch_assert(cond) assert(cond)
|
||||
#endif
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
#define RARCH_SCALE_BASE 256
|
||||
|
Loading…
x
Reference in New Issue
Block a user