![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
.
Dependencies: RTC-DS1307 mbed
debug.h@1:134750dc8585, 2016-04-18 (annotated)
- Committer:
- Karrots3
- Date:
- Mon Apr 18 16:30:52 2016 +0000
- Revision:
- 1:134750dc8585
- Parent:
- debug/debug.h@0:3fa629914ea5
.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Karrots3 | 0:3fa629914ea5 | 1 | #ifndef __DEBUG_H__ |
Karrots3 | 0:3fa629914ea5 | 2 | #define __DEBUG_H__ |
Karrots3 | 0:3fa629914ea5 | 3 | |
Karrots3 | 0:3fa629914ea5 | 4 | |
Karrots3 | 0:3fa629914ea5 | 5 | #ifdef DEBUG |
Karrots3 | 0:3fa629914ea5 | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
Karrots3 | 0:3fa629914ea5 | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
Karrots3 | 0:3fa629914ea5 | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
Karrots3 | 0:3fa629914ea5 | 9 | #else |
Karrots3 | 0:3fa629914ea5 | 10 | #define INFO(x, ...) |
Karrots3 | 0:3fa629914ea5 | 11 | #define WARN(x, ...) |
Karrots3 | 0:3fa629914ea5 | 12 | #define ERR(x, ...) |
Karrots3 | 0:3fa629914ea5 | 13 | #endif |
Karrots3 | 0:3fa629914ea5 | 14 | |
Karrots3 | 0:3fa629914ea5 | 15 | |
Karrots3 | 0:3fa629914ea5 | 16 | #endif |