log: misc helper

This commit is contained in:
bnnm 2024-07-06 01:25:58 +02:00
parent cd54cd57cd
commit 2ee639d6f5

View File

@ -73,6 +73,8 @@ void vgm_log_set_callback(void* ctx_p, int level, int type, void* callback);
printf("\n"); \ printf("\n"); \
} while (0) } while (0)
#define VGM_STEP() do { printf("%s: %s:%i\n", __FILE__, __FUNCTION__, __LINE__); } while (0)
#else /* VGM_DEBUG_OUTPUT */ #else /* VGM_DEBUG_OUTPUT */
#define VGM_LOG_ONCE(...) /* nothing */ #define VGM_LOG_ONCE(...) /* nothing */
@ -83,6 +85,8 @@ void vgm_log_set_callback(void* ctx_p, int level, int type, void* callback);
#define VGM_LOGB(buf, buf_size, bytes_per_line) /* nothing */ #define VGM_LOGB(buf, buf_size, bytes_per_line) /* nothing */
#define VGM_STEP() /* nothing */
#endif /*VGM_DEBUG_OUTPUT*/ #endif /*VGM_DEBUG_OUTPUT*/
#endif #endif