From 5e677d60897d01fe8dd9b8816e52efa02557f7e3 Mon Sep 17 00:00:00 2001 From: "Richard C. Gobeille" Date: Wed, 13 May 2020 12:47:20 -0700 Subject: [PATCH] Duke3d: restore previous version of VM_ASSERT macro for compilers other than MSVC --- source/duke3d/src/gameexec.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/duke3d/src/gameexec.cpp b/source/duke3d/src/gameexec.cpp index d86ee5426..365443c77 100644 --- a/source/duke3d/src/gameexec.cpp +++ b/source/duke3d/src/gameexec.cpp @@ -1394,14 +1394,14 @@ static void ResizeArray(int const arrayNum, int const newSize) } \ } while (0) #else -#define VM_ASSERT(condition, fmt, ...) \ - do \ - { \ - if (EDUKE32_PREDICT_FALSE(!(condition))) \ - { \ - CON_ERRPRINTF(fmt __VA_OPT__(, ) __VA_ARGS__); \ - abort_after_error(); \ - } \ +#define VM_ASSERT(condition, ...) \ + do \ + { \ + if (EDUKE32_PREDICT_FALSE(!(condition))) \ + { \ + CON_ERRPRINTF(__VA_ARGS__); \ + abort_after_error(); \ + } \ } while (0) #endif