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.
Dependents: RPC_HTTP RPC_HTTP_WIZnetInterface RPC_HTTP rpc_over_http_TL_interrupter_gatePJ
Fork of HTTPServer by
hl_debug.h@17:c690fb2de477, 2015-06-15 (annotated)
- Committer:
- sarahmarshy
- Date:
- Mon Jun 15 16:07:28 2015 +0000
- Revision:
- 17:c690fb2de477
- Parent:
- 16:cc3f5c53d0d5
Included RpcHandler in main HTTPServer header - allowed templating of RPC handler. Changed RPC succesful execution return code from 1 to 200. HTTP was sending a response of 1 on success, causing the client to assume there was an error.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
leihen | 15:909dcf44c3db | 1 | #ifndef __DEBUG_H__ |
leihen | 15:909dcf44c3db | 2 | #define __DEBUG_H__ |
leihen | 15:909dcf44c3db | 3 | |
leihen | 15:909dcf44c3db | 4 | |
leihen | 15:909dcf44c3db | 5 | #ifdef DEBUG |
leihen | 15:909dcf44c3db | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
leihen | 15:909dcf44c3db | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
leihen | 15:909dcf44c3db | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
leihen | 15:909dcf44c3db | 9 | #else |
leihen | 15:909dcf44c3db | 10 | #define INFO(x, ...) |
leihen | 15:909dcf44c3db | 11 | #define WARN(x, ...) |
leihen | 15:909dcf44c3db | 12 | #define ERR(x, ...) |
leihen | 15:909dcf44c3db | 13 | #endif |
leihen | 15:909dcf44c3db | 14 | |
leihen | 15:909dcf44c3db | 15 | |
leihen | 15:909dcf44c3db | 16 | #endif // __DEBUG_H__#ifndef __DEBUG_H__ |