Vodafone Test Suite
Dependencies: mbed-rtos mbed HTTPClient VodafoneUSBModem
Diff: LogHeader.h
- Revision:
- 14:d7bf58146337
- Parent:
- 2:ea883307d02f
- Child:
- 53:54b2d3a0c7bf
--- a/LogHeader.h Wed Aug 29 14:13:49 2012 +0000 +++ b/LogHeader.h Thu Aug 30 10:49:50 2012 +0000 @@ -1,9 +1,9 @@ -#pragma once -#define LOGGER -#ifdef LOGGER - #define LOG(...) { fprintf(stdout,"[LOG] "); fprintf(stdout,__VA_ARGS__); fprintf(stdout,"\r\n"); } - #define LOGX(...) { fprintf(stdout,"[LOG] "); fprintf(stdout,__VA_ARGS__) } -#else - #define LOG(...) - #define LOGX(...) +#pragma once +#define LOGGER +#ifdef LOGGER + #define LOG(...) { fprintf(stdout,"[LOG] "); fprintf(stdout,__VA_ARGS__); fprintf(stdout,"\r\n"); } + #define LOGX(...) { fprintf(stdout,"[LOG] "); fprintf(stdout,__VA_ARGS__) } +#else + #define LOG(...) + #define LOGX(...) #endif \ No newline at end of file