diff --git a/build/main b/build/main index 197e732..49b347e 100755 Binary files a/build/main and b/build/main differ diff --git a/main b/main deleted file mode 100755 index 66cbf97..0000000 Binary files a/main and /dev/null differ diff --git a/main.c b/main.c index b6c99fb..38400dc 100644 --- a/main.c +++ b/main.c @@ -3,6 +3,8 @@ #include #include + +/* I took it from stack overflow man stop asking me questions */ #define NARGS(...) NARGS_(__VA_ARGS__, 5, 4, 3, 2, 1, 0) #define NARGS_(_5, _4, _3, _2, _1, N, ...) N @@ -12,18 +14,22 @@ #define LOG(...) LOGG(LOG, NARGS(__VA_ARGS__))(__VA_ARGS__) -void LOG1(char *str) { printf("+ [INFO] %s\n", str); } +void LOG1(char *str) { printf("\e[0;34m+ [INFO] \e[0m%s\n", str); } void LOG2(char *str, char *level) { if (strcmp(level, "warn") == 0) { - printf("! [WARN] %s\n", str); + printf("\e[0;33m! [WARN] \e[0m%s\n", str); return; } if (strcmp(level, "fatal") == 0) { - printf("!! [FATAL] %s\n", str); + printf("\e[0;31m!! [FATAL] \e[0m%s\n", str); exit(1); } + + if (strcmp(level, "todo") == 0) { + printf("+ [TODO] %s\n", str); + } } @@ -31,6 +37,7 @@ int main() { LOG("This is a Log"); LOG("This is a Warning", "warn"); + LOG("This is a TODO", "todo"); LOG("HELLO", "fatal"); return 0; }