From 0e3df84559acbd6aa66ab58f7c28ed0afe10b5cc Mon Sep 17 00:00:00 2001 From: Tristan Cormier Date: Tue, 27 Feb 2024 22:20:34 -0500 Subject: [PATCH] fix: resolve compilation errors in variadic macros SI2_ERR and SI2_LOG --- src/sound/SI2.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound/SI2.hpp b/src/sound/SI2.hpp index 088327c..bd8a881 100644 --- a/src/sound/SI2.hpp +++ b/src/sound/SI2.hpp @@ -9,8 +9,8 @@ #include -#define SI2_ERR(errcode, format, ...) SI2::Log_Write(__LINE__, __FILE__, errcode, format, __VA_ARGS__) -#define SI2_LOG(format, ...) SI2::Log_Write(__LINE__, __FILE__, FMOD_OK, format, __VA_ARGS__) +#define SI2_ERR(errcode, format, ...) SI2::Log_Write(__LINE__, __FILE__, errcode, format, ##__VA_ARGS__) +#define SI2_LOG(format, ...) SI2::Log_Write(__LINE__, __FILE__, FMOD_OK, format, ##__VA_ARGS__) class SI2 { public: