From 5c0311ff3095a5dd30fb15db54aa394498dd2bcf Mon Sep 17 00:00:00 2001 From: 0scar Date: Mon, 30 Oct 2023 23:11:54 +0100 Subject: The great formattening! --- include/engine/logging.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'include/engine/logging.h') diff --git a/include/engine/logging.h b/include/engine/logging.h index 8d5ef31..d1c5890 100644 --- a/include/engine/logging.h +++ b/include/engine/logging.h @@ -1,20 +1,20 @@ #ifndef LOGGING_H #define LOGGING_H +#include +#include #include #include -#include #include -#include #include "types.h" #if defined __linux__ || defined __APPLE__ -#define TERM_COLOR_RESET "\033[0m" -#define TERM_COLOR_RED "\033[31m" -#define TERM_COLOR_GREEN "\033[32m" +#define TERM_COLOR_RESET "\033[0m" +#define TERM_COLOR_RED "\033[31m" +#define TERM_COLOR_GREEN "\033[32m" #define TERM_COLOR_YELLOW "\033[33m" -#define TERM_COLOR_BLUE "\033[34m" +#define TERM_COLOR_BLUE "\033[34m" #define TERM_COLOR_PURPLE "\033[35m" #else #define TERM_COLOR_RESET @@ -27,22 +27,23 @@ #define STR(a) (#a) -void _log(FILE *stream, const char *prefix, const char *fmt, va_list ap); +void _log(FILE* stream, const char* prefix, const char* fmt, va_list ap); -void LOG(const char *fmt, ...); +void LOG(const char* fmt, ...); -void INFO_(const char *fmt, ...); -void INFO(const char *fmt, ...); +void INFO_(const char* fmt, ...); +void INFO(const char* fmt, ...); #ifdef _DEBUG -#define DEBUG(fmt, ...) __DEBUG(__FILE__,__LINE__, __func__, fmt, __VA_ARGS__) -void __DEBUG(const char* file, const i32 line, const char* func, const char *fmt, ...); +#define DEBUG(fmt, ...) __DEBUG(__FILE__, __LINE__, __func__, fmt, __VA_ARGS__) +void __DEBUG(const char* file, const i32 line, const char* func, + const char* fmt, ...); #else #define DEBUG(...) #endif -void WARN(const char *fmt, ...); +void WARN(const char* fmt, ...); -void ERROR(const char *fmt, ...); +void ERROR(const char* fmt, ...); #endif -- cgit v1.3