diff options
| author | onelin <oscar@nelin.dk> | 2026-06-22 21:04:51 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2026-06-22 21:04:51 +0000 |
| commit | 511b5a54babc0e1ddb621f21adcc237fc44ce0a2 (patch) | |
| tree | bdb12efbc3156f91cf3a2f205236c4e7bfa75af7 | |
| parent | fe96bbc9bba40535a444e2bd69c30f0c8f29b326 (diff) | |
| -rw-r--r-- | src/include/daw/logging.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/daw/logging.h b/src/include/daw/logging.h index ded5bc1..edbaaa0 100644 --- a/src/include/daw/logging.h +++ b/src/include/daw/logging.h @@ -45,9 +45,9 @@ void ERROR(const char* fmt, ...); void __DEBUG(const char* file, const i32 line, const char* func, const char* fmt, ...); -#define UNIMPLEMENTED { DEBUG("%s is not implemented yet!", __func__); __asm__("int3;"); } do {} while (false) +#define UNIMPLEMENTED do { DEBUG("%s is not implemented yet!", __func__); __asm__("int3;"); } while (false) -#define ASSERT(cond) if (!(cond)) { ERROR(__FILE__ ":%d: ASSERTION FAILED! " #cond, __LINE__); __asm__("int3;"); } do {} while (false) +#define ASSERT(cond) if (!(cond)) do { ERROR(__FILE__ ":%d: ASSERTION FAILED! " #cond, __LINE__); __asm__("int3;"); } while (false) #else #define DEBUG(...) #define ASSERT(...) |
