32 #define ASSERT(condition) if (!(condition)) STB_SPDebugAssertFail(__FILE__, __LINE__, # condition);
35 #define ASSERT(condition) assert(condition);
38 #define ERRLOG(x, ...) if (sfm->setup.errPrintf) \
39 sfm->setup.errPrintf( "%s:%d " x "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__);
41 #define DBGLOG(t, x, ...) if (sfm->setup.dbgPrintf && (sfm->setup.dbgState & t)) \
42 sfm->setup.dbgPrintf( "%s:%d " x "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__);
46 #define ASSERT(condition)
48 #define ERRLOG(x, ...)
49 #define DBGLOG(t, x, ...)
54 #define FUNCTION_START(x) DBGLOG(DF_FUNC, " start")
55 #define FUNCTION_FINISH(x) DBGLOG(DF_FUNC, " finish")
57 #define FUNCTION_START(x)
58 #define FUNCTION_FINISH(x)
Interface to platform debug functions.