wta.c: add color and debug macros
This commit is contained in:
parent
42cd075421
commit
06f1fe37ad
1 changed files with 15 additions and 0 deletions
15
src/wta.c
15
src/wta.c
|
@ -1,3 +1,18 @@
|
|||
#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()
|
||||
{
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue