HTTPServer
hl_debug.h@0:caf5feddac47, 2017-09-16 (annotated)
- Committer:
- jphuc96
- Date:
- Sat Sep 16 02:39:55 2017 +0000
- Revision:
- 0:caf5feddac47
v1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jphuc96 | 0:caf5feddac47 | 1 | #ifndef __DEBUG_H__ |
jphuc96 | 0:caf5feddac47 | 2 | #define __DEBUG_H__ |
jphuc96 | 0:caf5feddac47 | 3 | |
jphuc96 | 0:caf5feddac47 | 4 | |
jphuc96 | 0:caf5feddac47 | 5 | #ifdef DEBUG |
jphuc96 | 0:caf5feddac47 | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
jphuc96 | 0:caf5feddac47 | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
jphuc96 | 0:caf5feddac47 | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
jphuc96 | 0:caf5feddac47 | 9 | #else |
jphuc96 | 0:caf5feddac47 | 10 | #define INFO(x, ...) |
jphuc96 | 0:caf5feddac47 | 11 | #define WARN(x, ...) |
jphuc96 | 0:caf5feddac47 | 12 | #define ERR(x, ...) |
jphuc96 | 0:caf5feddac47 | 13 | #endif |
jphuc96 | 0:caf5feddac47 | 14 | |
jphuc96 | 0:caf5feddac47 | 15 | |
jphuc96 | 0:caf5feddac47 | 16 | #endif // __DEBUG_H__#ifndef __DEBUG_H__ |