diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 08:53:38 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-09-05 08:55:25 +0200 |
| commit | fd5ddb3db9f50411ca579d84f225f265ca35b56a (patch) | |
| tree | b659112cc0e2abd6c7edb08b0938c0d2de4ca066 /src/utils/dbg_log.h | |
| parent | c9e2d6466e42d6b779ac9ffa7c5ee9a9c7558df8 (diff) | |
| download | nissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.tar.gz nissy-core-fd5ddb3db9f50411ca579d84f225f265ca35b56a.zip | |
Rename constants from _underscore to CAPS
Diffstat (limited to 'src/utils/dbg_log.h')
| -rw-r--r-- | src/utils/dbg_log.h | 8 |
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 |
