From 2c2b197255f05a70172d9d89bc43af438787692f Mon Sep 17 00:00:00 2001 From: s-over-4 Date: Tue, 13 Jun 2023 09:52:03 -0400 Subject: util --- src/include/log.h | 24 ------------------------ src/include/util.h | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 24 deletions(-) delete mode 100644 src/include/log.h create mode 100644 src/include/util.h (limited to 'src/include') 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 - - -#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 +#include +#include +#include + + +void log_inf(const char* fmt, ...); +void log_war(const char* fmt, ...); +void log_err(const char* fmt, ...); +void die(const char* fmt, ...); + +#endif -- cgit v1.2.3