From 06f1fe37ad95fc6f5f7cc5c1f6085bf7b285d848 Mon Sep 17 00:00:00 2001 From: xesc Date: Tue, 8 Oct 2024 14:57:57 +0200 Subject: [PATCH] wta.c: add color and debug macros --- src/wta.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/wta.c b/src/wta.c index f8b643a..b053875 100644 --- a/src/wta.c +++ b/src/wta.c @@ -1,3 +1,18 @@ +#include + +#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() { return 0;