diff options
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 |