mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
This commit is contained in:
parent
22f25a9e4f
commit
e56136ce11
31 changed files with 387 additions and 388 deletions
4
debug.h
4
debug.h
|
|
@ -8,9 +8,7 @@
|
|||
#define BUG(...) bug(__FILE__, __LINE__, __func__, __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#undef assert
|
||||
|
||||
#define assert(x) do { \
|
||||
#define xassert(x) do { \
|
||||
IGNORE_WARNING("-Wtautological-compare") \
|
||||
if (unlikely(!(x))) { \
|
||||
BUG("assertion failed: '%s'", #x); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue