a

Fork of HTTPServer by Donatien Garnier

Revision:
2:356c7fa399ae
Parent:
0:52230c56755e
Child:
5:d45c35d26466
diff -r 56636f5bf71a -r 356c7fa399ae LPC1768/dbg/dbg.h
--- a/LPC1768/dbg/dbg.h	Mon Jun 14 10:22:58 2010 +0000
+++ b/LPC1768/dbg/dbg.h	Fri Jun 18 09:20:52 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