EthernetNetIf Compatibility.
Dependents: XBeeWiFi_SPI_example
Fork of NetServicesSource by
Diff: dbg/dbg.h
- Revision:
- 5:dd63a1e02b1b
- Parent:
- 4:fd826cad83c0
- Child:
- 7:534fa46ad8c5
--- a/dbg/dbg.h Fri Jul 09 14:46:47 2010 +0000 +++ b/dbg/dbg.h Tue Jul 27 15:59:42 2010 +0000 @@ -28,6 +28,7 @@ #define __DEBUG #endif +///To define to enable debugging in one file #ifdef __DEBUG #ifndef __DEBUGSTREAM @@ -47,8 +48,15 @@ #undef DBG #undef DBG_END #undef BREAK + +///Debug output (if enabled), same syntax as printf, with heading info #define DBG(...) do{ DebugStream::debug("[%s:%s@%d] ", __FILE__, __FUNCTION__, __LINE__); DebugStream::debug(__VA_ARGS__); } while(0); + +///Debug output (if enabled), same syntax as printf, no heading info +#define DBGL(...) do{ DebugStream::debug(__VA_ARGS__); } while(0); #define DBG_END DebugStream::release + +///Break point usin serial debug interface (if debug enbaled) #define BREAK() DebugStream::breakPoint(__FILE__, __LINE__) #endif