blob: 000ce9520b5282f19e3a5d82a3a131a0ad8672a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#ifndef LOG_H
#define LOG_H
#define __RED__ "\033[0;31m"
#define __GREEN__ "\033[0;32m"
#define __RESET__ "\033[0m"
#define STR(x) #x
#define XSTR(x) STR(x)
#define info(...) fprintf(stdout, __GREEN__"[INFO]"__RESET__" "__VA_ARGS__); fprintf(stdout, "\n")
#define err(...) fprintf(stderr, __RED__"[ERROR]"__RESET__" "__FILE__":"XSTR(__LINE__)": "__VA_ARGS__); fprintf(stderr, "\n")
#endif
|