diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/log.h | 24 | ||||
-rw-r--r-- | src/include/util.h | 15 |
2 files changed, 15 insertions, 24 deletions
diff --git a/src/include/log.h b/src/include/log.h deleted file mode 100644 index 1ad592b..0000000 --- a/src/include/log.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef LOG_H -#define LOG_H - - -#include <stdio.h> - - -#define KNRM "\x1B[0m" -#define KRED "\x1B[31m" -#define KGRN "\x1B[32m" -#define KYEL "\x1B[33m" -#define KBLU "\x1B[34m" -#define KMAG "\x1B[35m" -#define KCYN "\x1B[36m" -#define KWHT "\x1B[37m" - - -void log_dbg(char* content); -void log_inf(char* content); -void log_war(char* content); -void log_err(char* content); - - -#endif diff --git a/src/include/util.h b/src/include/util.h new file mode 100644 index 0000000..500fb5f --- /dev/null +++ b/src/include/util.h @@ -0,0 +1,15 @@ +#ifndef UTIL_H +#define UTIL_H + +#include <stdarg.h> +#include <string.h> +#include <stdlib.h> +#include <stdio.h> + + +void log_inf(const char* fmt, ...); +void log_war(const char* fmt, ...); +void log_err(const char* fmt, ...); +void die(const char* fmt, ...); + +#endif |