mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +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)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
#define VM_ASSERT(condition, fmt, ...) \
|
#define VM_ASSERT(condition, ...) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
if (EDUKE32_PREDICT_FALSE(!(condition))) \
|
if (EDUKE32_PREDICT_FALSE(!(condition))) \
|
||||||
{ \
|
{ \
|
||||||
CON_ERRPRINTF(fmt __VA_OPT__(, ) __VA_ARGS__); \
|
CON_ERRPRINTF(__VA_ARGS__); \
|
||||||
abort_after_error(); \
|
abort_after_error(); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue