From 511b5a54babc0e1ddb621f21adcc237fc44ce0a2 Mon Sep 17 00:00:00 2001 From: onelin Date: Mon, 22 Jun 2026 23:04:51 +0200 Subject: Switch while do --- src/include/daw/logging.h | 4 ++-- 1 file 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(...) -- cgit v1.3