From 38ddb7e5052af5edbe173098fb704ad080016df0 Mon Sep 17 00:00:00 2001 From: onelin Date: Sun, 15 Mar 2026 21:59:04 +0100 Subject: Macro fun --- src/include/daw/logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/daw/logging.h b/src/include/daw/logging.h index ec4674e..ded5bc1 100644 --- a/src/include/daw/logging.h +++ b/src/include/daw/logging.h @@ -47,7 +47,7 @@ void __DEBUG(const char* file, const i32 line, const char* func, #define UNIMPLEMENTED { DEBUG("%s is not implemented yet!", __func__); __asm__("int3;"); } do {} while (false) -#define ASSERT(cond) if (!(cond)) { ERROR("ASSERTION FAILED! " #cond); __asm__("int3;"); } do {} while (false) +#define ASSERT(cond) if (!(cond)) { ERROR(__FILE__ ":%d: ASSERTION FAILED! " #cond, __LINE__); __asm__("int3;"); } do {} while (false) #else #define DEBUG(...) #define ASSERT(...) -- cgit v1.3