mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Duke3d: restore previous version of VM_ASSERT macro for compilers other than MSVC
This commit is contained in:
parent
3ab314e95a
commit
5e677d6089
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue