53 #define mgdl_assert_printf(test, message, ...) \
54 if ((test) == false) \
56 AssertFunctionPrintf(__FILE__, __LINE__, message, ##__VA_ARGS__); \
61#ifdef MGDL_PLATFORM_MAC
62 #pragma clang diagnostic push
63 #pragma clang diagnostic ignored "-Wvariadic-macros"
66 #define mgdl_assert_printf(test, message, ...) \
67 if ((test) == false) \
69 AssertFunctionPrintf(__FILE__, __LINE__, message, __VA_ARGS__); \
72#ifdef MGDL_PLATFORM_MAC
73 #pragma clang diagnostic pop
80#define mgdl_assert_print(test, message) \
83 AssertFunctionPrint(__FILE__, __LINE__, message); \
86#define mgdl_assert_test(test) \
89 AssertFunctionPrint(__FILE__, __LINE__, #test); \
void AssertFunctionPrint(const char *filename, int lineNumber, const char *message)
If the assert fails, break into assert display loop and ask if assert should be ignored.
Definition pc-assert.cpp:22
void AssertFunctionPrintf(const char *filename, int lineNumber, const char *message,...)
If the assert fails, break into assert display loop and ask if assert should be ignored.
Definition pc-assert.cpp:6
Library types, macros, defines and enums header.