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.
Dependencies: EthernetInterface HTTPServer mbed-rpc mbed-rtos mbed
debug.h@0:28a67716dfec, 2013-06-22 (annotated)
- Committer:
- leihen
- Date:
- Sat Jun 22 15:50:41 2013 +0000
- Revision:
- 0:28a67716dfec
Example implementation for usage of Ethernet Interface HTTPServer
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| leihen | 0:28a67716dfec | 1 | #ifndef __DEBUG_H__ |
| leihen | 0:28a67716dfec | 2 | #define __DEBUG_H__ |
| leihen | 0:28a67716dfec | 3 | |
| leihen | 0:28a67716dfec | 4 | |
| leihen | 0:28a67716dfec | 5 | #ifdef DEBUG |
| leihen | 0:28a67716dfec | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
| leihen | 0:28a67716dfec | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
| leihen | 0:28a67716dfec | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
| leihen | 0:28a67716dfec | 9 | #else |
| leihen | 0:28a67716dfec | 10 | #define INFO(x, ...) |
| leihen | 0:28a67716dfec | 11 | #define WARN(x, ...) |
| leihen | 0:28a67716dfec | 12 | #define ERR(x, ...) |
| leihen | 0:28a67716dfec | 13 | #endif |
| leihen | 0:28a67716dfec | 14 | |
| leihen | 0:28a67716dfec | 15 | |
| leihen | 0:28a67716dfec | 16 | #endif // __DEBUG_H__#ifndef __DEBUG_H__ |