mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 05:43:34 +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))
|
#define min(a, b) ((a) < (b) ? (a) : (b))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef RARCH_INTERNAL
|
||||||
#define rarch_assert(cond) do { \
|
#define rarch_assert(cond) do { \
|
||||||
if (!(cond)) { RARCH_ERR("Assertion failed at %s:%d.\n", __FILE__, __LINE__); abort(); } \
|
if (!(cond)) { RARCH_ERR("Assertion failed at %s:%d.\n", __FILE__, __LINE__); abort(); } \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
#else
|
||||||
|
#define rarch_assert(cond) assert(cond)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||||
#define RARCH_SCALE_BASE 256
|
#define RARCH_SCALE_BASE 256
|
||||||
|
Loading…
x
Reference in New Issue
Block a user