.
Dependencies: RTC-DS1307 mbed
debug.h@3:0fa42a66a4a6, 2016-04-18 (annotated)
- Committer:
- Karrots3
- Date:
- Mon Apr 18 19:20:22 2016 +0000
- Revision:
- 3:0fa42a66a4a6
- Parent:
- 1:134750dc8585
.
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 |