From 09435bffe025a96e0d9c3b44ee9c505973b383bd Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 6 Oct 2025 05:06:16 -0400 Subject: Cleanup, fix bugs Ensure everything builds on C89 --- src/utils.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index 9a740e5..303055a 100644 --- a/src/utils.h +++ b/src/utils.h @@ -3,13 +3,11 @@ #include -void pit_panic_(const char *format, ...); -void pit_debug_(const char *format, ...); #define PIT_STRSTR(x) #x #define PIT_STR(x) PIT_STRSTR(x) -#define pit_panic(format, ...) pit_panic_("error [" __FILE__ ":" PIT_STR(__LINE__) "] " format "\n" __VA_OPT__(,) __VA_ARGS__) -#define pit_debug(format, ...) pit_debug_("[" __FILE__ ":" PIT_STR(__LINE__) "] " format "\n" __VA_OPT__(,) __VA_ARGS__) -#define pit_mul(result, a, b) if (ckd_mul(result, a, b)) pit_panic("integer overflow during multiplication"); +void pit_panic(const char *format, ...); +void pit_debug(const char *format, ...); +#define pit_mul(result, a, b) if (ckd_mul(result, a, b)) pit_panic("integer overflow during multiplication%s",""); #endif -- cgit v1.2.3