wta.c -> wte.c: rename & add error macro.

This commit is contained in:
xesc 2024-10-10 15:44:58 +02:00
parent c03c9eb9cf
commit 67a044a3c9
2 changed files with 22 additions and 6 deletions

View file

@ -1,28 +0,0 @@
#include <stdio.h>
#ifdef DEBUG
#define dbg(format, ...) do { \
printf("\033[1;35m[DEBUG] (func: %s) msg:\033[0;35m " format "\033[0m\n",__func__, __VA_ARGS__); \
} while(0)
#else
#define dbg(format, ...)
#endif
#define c_red "\033[1;31m"
#define c_green "\033[1;32m"
#define c_yellow "\033[1;33m"
#define c_end "\033[0m"
int main(const int argc, const char **argv)
{
if (2 == argc) {
if ('-' == argv[1][0] && 'h' == argv[1][1] && '\0' == argv[1][2]) {
printf("wte - what to eat\na simple decision making tool for food\n");
} else {
printf("unrecognized option, try %s -h\n", *argv);
}
goto exit_main;
}
exit_main:
return 0;
}