Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Rtc_Ds1307_Sample by
debug.h@3:9aca52e8a9ef, 2017-04-25 (annotated)
- Committer:
- tony63
- Date:
- Tue Apr 25 18:33:20 2017 +0000
- Revision:
- 3:9aca52e8a9ef
- Parent:
- 2:3be003301107
EJEMPLO DE LA TAREA PICO Y PLACA
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| leihen | 2:3be003301107 | 1 | #ifndef __DEBUG_H__ |
| leihen | 2:3be003301107 | 2 | #define __DEBUG_H__ |
| leihen | 2:3be003301107 | 3 | |
| leihen | 2:3be003301107 | 4 | |
| leihen | 2:3be003301107 | 5 | #ifdef DEBUG |
| leihen | 2:3be003301107 | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
| leihen | 2:3be003301107 | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
| leihen | 2:3be003301107 | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
| leihen | 2:3be003301107 | 9 | #else |
| leihen | 2:3be003301107 | 10 | #define INFO(x, ...) |
| leihen | 2:3be003301107 | 11 | #define WARN(x, ...) |
| leihen | 2:3be003301107 | 12 | #define ERR(x, ...) |
| leihen | 2:3be003301107 | 13 | #endif |
| leihen | 2:3be003301107 | 14 | |
| leihen | 2:3be003301107 | 15 | |
| leihen | 2:3be003301107 | 16 | #endif |
