Duke3d: restore previous version of VM_ASSERT macro for compilers other than MSVC

This commit is contained in:
Richard C. Gobeille 2020-05-13 12:47:20 -07:00 committed by Christoph Oelckers
parent 3ab314e95a
commit 5e677d6089

View file

@ -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