aboutsummaryrefslogtreecommitdiff
path: root/src/utils/dbg_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/dbg_log.h')
-rw-r--r--src/utils/dbg_log.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/dbg_log.h b/src/utils/dbg_log.h
index 427eceb..f9b1d8a 100644
--- a/src/utils/dbg_log.h
+++ b/src/utils/dbg_log.h
@@ -3,14 +3,14 @@ void (*nissy_log)(const char *, ...);
3#define LOG(...) if (nissy_log != NULL) nissy_log(__VA_ARGS__); 3#define LOG(...) if (nissy_log != NULL) nissy_log(__VA_ARGS__);
4 4
5#ifdef DEBUG 5#ifdef DEBUG
6#define _static 6#define STATIC
7#define _static_inline 7#define STATIC_INLINE
8#define DBG_WARN(condition, ...) if (!(condition)) LOG(__VA_ARGS__); 8#define DBG_WARN(condition, ...) if (!(condition)) LOG(__VA_ARGS__);
9#define DBG_ASSERT(condition, retval, ...) \ 9#define DBG_ASSERT(condition, retval, ...) \
10 if (!(condition)) { LOG(__VA_ARGS__); return retval; } 10 if (!(condition)) { LOG(__VA_ARGS__); return retval; }
11#else 11#else
12#define _static static 12#define STATIC static
13#define _static_inline static inline 13#define STATIC_INLINE static inline
14#define DBG_WARN(condition, ...) 14#define DBG_WARN(condition, ...)
15#define DBG_ASSERT(condition, retval, ...) 15#define DBG_ASSERT(condition, retval, ...)
16#endif 16#endif

Generated with cgit - Back to sebastiano.tronto.net