X2D lib first commit
Diff: X2D.h
- Revision:
- 21:ffdda83d49e8
- Parent:
- 20:b14dcf6ec4bf
- Child:
- 22:2f87ca62099c
--- a/X2D.h Fri Jan 03 19:27:06 2020 +0000 +++ b/X2D.h Sat Feb 08 10:08:45 2020 +0000 @@ -4,10 +4,10 @@ #ifndef __DEBUG__ #define __DEBUG__ -#define Level 2 -#define DBG(x, ...) if (Level>=3) pc.printf("[DBG]"x"\r\n", ##__VA_ARGS__); -#define WARN(x, ...) if (Level>=2) pc.printf("[WARN]"x"\r\n", ##__VA_ARGS__); -#define ERR(x, ...) if (Level>=1) pc.printf("[ERR]"x"\r\n", ##__VA_ARGS__); +#define Level 1 +#define DBG(x, ...) if (Level>=3) debug("[DBG]"x"\r\n", ##__VA_ARGS__); +#define WARN(x, ...) if (Level>=2) debug("[WARN]"x"\r\n", ##__VA_ARGS__); +#define ERR(x, ...) if (Level>=1) debug("[ERR]"x"\r\n", ##__VA_ARGS__); #endif extern unsigned short maison;