diff options
author | Marvin Borner | 2023-10-21 18:21:59 +0200 |
---|---|---|
committer | Marvin Borner | 2023-10-21 18:21:59 +0200 |
commit | e8e99e934c3c7ac0861adf0ac59c08f15e42f450 (patch) | |
tree | c85b4cf7e41835969ca28f0a2dd553bd7a78f340 /inc/log.h | |
parent | acab739b55824f508dd61de9ab8ef91c18b1a086 (diff) |
Started basic beta shift
Diffstat (limited to 'inc/log.h')
-rw-r--r-- | inc/log.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -4,8 +4,18 @@ #ifndef CALM_LOG_H #define CALM_LOG_H -void debug(const char *format, ...); +#define HASH_MASK 0xffff + +void _debug(const char *format, ...); void debug_enable(int enable); void fatal(const char *format, ...) __attribute__((noreturn)); +/* #define debug(...) \ */ +/* do { \ */ +/* _debug("%s:%d: %s:\n", __FILE__, __LINE__, __func__); \ */ +/* _debug(__VA_ARGS__); \ */ +/* } while (0) */ + +#define debug(...) _debug(__VA_ARGS__) + #endif |