diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-25 17:18:09 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-25 17:18:09 +0100 |
| commit | 1a42bf20a334e43b77bdeced6c17597ee3df6ed1 (patch) | |
| tree | 9686c7a0cf8c345a1624794ea76e254e2bf76aae /cheesemap.h | |
| parent | a62e16bf2639b5db99aa382d089d83b13ecf71c9 (diff) | |
add cmake support
Diffstat (limited to 'cheesemap.h')
| -rw-r--r-- | cheesemap.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cheesemap.h b/cheesemap.h index 73ddc48..e736588 100644 --- a/cheesemap.h +++ b/cheesemap.h @@ -13,13 +13,13 @@ extern "C" { #include <stdbool.h> #include <stdint.h> -_Noreturn void CM_OPT_PANIC_NAME(const char* file, uint32_t line, - const char* fmt, ...); +_Noreturn void CM_PANIC_SYM(const char* file, uint32_t line, const char* fmt, + ...); -#define cm_assert(cond) \ - do { \ - if (!(cond)) \ - CM_OPT_PANIC_NAME(__FILE__, __LINE__, "cm_assertion failed: %s", #cond); \ +#define cm_assert(cond) \ + do { \ + if (!(cond)) \ + CM_PANIC_SYM(__FILE__, __LINE__, "cm_assertion failed: %s", #cond); \ } while (0) #ifdef CM_OPT_ENABLE_SSE2 |
