diff options
Diffstat (limited to 'src')
| -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(...) |
