diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-08-03 15:51:34 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-08-03 15:51:34 -0300 |
commit | fd3c65ddfba142af718dda3ca985358a1420b9fa (patch) | |
tree | 63105b08ec09056eb12356446ddb84dcd2565f83 /macros.h | |
parent | 9e4d29fbc2a285ee805836267b955fecc96c0377 (diff) |
log, macros: Make `stdout`, and `stderr` logging more colourful
This is designed to make it more readable when printing the logs to
a terminal, or terminal emulator.
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,10 +1,13 @@ #ifndef MACROS_H #define MACROS_H +#define const_strlen(str) sizeof((char []){str}) + +#ifndef LOG_H #include "log.h" #define log(priority, ...) printlog(LOG_OUT_SYSLOG, priority, __VA_ARGS__) #define log_reason(priority, msg, ...) log(priority, msg " Reason %s", __VA_ARGS__) -#define const_strlen(str) sizeof((char []){str}) +#endif #endif |