32 #define ASSERT(condition) if (!(condition)) STB_SPDebugAssertFail(__FILE__, __LINE__, # condition); 35 #define ASSERT(condition) assert(condition); 38 #define ERRLOG(x, ...) if (siq->setup.errPrintf) \ 39 siq->setup.errPrintf( "%s:%d " x "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__); 41 #define DBGLOG(t, x, ...) if (siq->setup.dbgPrintf && (siq->setup.dbgState & t)) \ 42 siq->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(DS_FUNC, " start") 55 #define FUNCTION_FINISH(x) DBGLOG(DS_FUNC, " finish") 57 #define FUNCTION_START(x) 58 #define FUNCTION_FINISH(x) Interface to platform debug functions.