Dependents:   MySQLClientExample MySQLClientExampleMA

Revision:
1:c3a3a0aa03ec
Parent:
0:403b85869e53
Child:
3:f8f7e3785d9b
--- a/LPC2368/dbg/dbg.h	Fri Jun 11 16:26:30 2010 +0000
+++ b/LPC2368/dbg/dbg.h	Fri Jun 18 09:21:06 2010 +0000
@@ -39,21 +39,26 @@
 public:
 static void debug(const char* format, ...);
 static void release();
+static void breakPoint(const char* file, int line);
 private:
 
 };
 
 #undef DBG
 #undef DBG_END
+#undef BREAK
 #define DBG DebugStream::debug
 #define DBG_END DebugStream::release
+#define BREAK() DebugStream::breakPoint(__FILE__, __LINE__)
 #endif
 
 #else
 #undef DBG
 #undef DBG_END
+#undef BREAK
 #define DBG(...)
 #define DBG_END()
+#define BREAK()
 #endif
 
 #ifdef __LWIP_DEBUG