One more debug util

This commit is contained in:
bnnm 2016-12-29 13:27:10 +01:00
parent ad660177c4
commit c042878a1b

View File

@ -81,11 +81,14 @@ void concatn_fitting_doublenull(int length, char * dst, const char * src);
do { if (condition) printf(__VA_ARGS__); } while (0)
#define VGM_LOG(...) \
do { printf(__VA_ARGS__); } while (0)
#define VGM_LOGF() \
do { printf("%s:%i '%s'\n", __FILE__, __LINE__, __func__); } while (0)
#else
#define VGM_ASSERT(condition,fmt, ...) /* nothing */
#define VGM_LOG(...) /* nothing */
#define VGM_LOGF(...) /* nothing */
#endif