![](/media/cache/profiles/a979ca2444b34449a2c80b012749e9cd.jpg.50x50_q85.jpg)
HTTP Server upon new mbed Ethernet Interface. Based on original code by Henry Leinen.
Dependencies: EthernetInterface mbed-rtos mbed
Fork of HTTP_server by
debug.h
- Committer:
- pabloxid
- Date:
- 2013-08-05
- Revision:
- 4:2a34139c7246
- Parent:
- 2:dc9184e97328
File content as of revision 4:2a34139c7246:
#ifndef __DEBUG_H__ #define __DEBUG_H__ #if (DEBUG == 3) #define INFO(x, ...) std::printf("[INFO: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #define WARN(x, ...) std::printf("[WARN: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #define ERR(x, ...) std::printf("[ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #elif (DEBUG == 2) #define INFO(x, ...) #define WARN(x, ...) std::printf("[WARN: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #define ERR(x, ...) std::printf("[ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #elif (DEBUG == 1) #define INFO(x, ...) #define WARN(x, ...) #define ERR(x, ...) std::printf("[ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #else #define INFO(x, ...) #define WARN(x, ...) #define ERR(x, ...) #endif #endif // __DEBUG_H__#ifndef __DEBUG_H__