diff options
| author | onelin <oscar@nelin.dk> | 2026-03-15 20:59:04 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2026-03-15 21:10:14 +0000 |
| commit | 38ddb7e5052af5edbe173098fb704ad080016df0 (patch) | |
| tree | 7de635571bb27af603f74fb8e352a5697da66c83 /src | |
| parent | d773938ce31f8036fde3b407f7a74444fc39686f (diff) | |
Macro fun
Diffstat (limited to 'src')
| -rw-r--r-- | src/include/daw/logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
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(...) |
