From 102f9295fd78ebe8a75664a0154f921da59a819b Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 22 Jan 2026 12:23:30 +0100 Subject: [PATCH] Delete __VA_OPT__ from logging macros, since this is unnecessary. --- src/util/error.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/error.h b/src/util/error.h index 7646cc3..11d09f9 100644 --- a/src/util/error.h +++ b/src/util/error.h @@ -16,8 +16,8 @@ void error_warn(uint ln, const char *restrict file, const char *restrict fmt, .. void error_error(uint ln, const char *restrict file, const char *restrict fmt, ...); void error_fatal(uint ln, const char *restrict file, const char *restrict fmt, ...) NORET; -#define debug(...) error_debug(__LINE__, __FILE__ __VA_OPT__(, ) __VA_ARGS__) -#define info(...) error_info(__LINE__, __FILE__ __VA_OPT__(, ) __VA_ARGS__) -#define warn(...) error_warn(__LINE__, __FILE__ __VA_OPT__(, ) __VA_ARGS__) -#define error(...) error_error(__LINE__, __FILE__ __VA_OPT__(, ) __VA_ARGS__) -#define fatal(...) error_fatal(__LINE__, __FILE__ __VA_OPT__(, ) __VA_ARGS__) +#define debug(...) error_debug(__LINE__, __FILE__, __VA_ARGS__) +#define info(...) error_info(__LINE__, __FILE__, __VA_ARGS__) +#define warn(...) error_warn(__LINE__, __FILE__, __VA_ARGS__) +#define error(...) error_error(__LINE__, __FILE__, __VA_ARGS__) +#define fatal(...) error_fatal(__LINE__, __FILE__, __VA_ARGS__)