Files
CERAS/include/debug.h
2025-04-13 02:27:22 -04:00

17 lines
468 B
C

#ifndef DEBUG_H
#define DEBUG_H
#include <stdio.h>
extern int g_debug; // Global debug flag
#define DEBUG_LOG(fmt, ...) \
do { \
if (g_debug) { \
fprintf(stderr, "[DEBUG] " fmt "\n", ##__VA_ARGS__); \
} \
} while (0)
#endif // DEBUG_H