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: DS130x_I2CApp MCP41xxxApp FM24Vxx_I2CApp MCP320xApp ... more
Diff: Debug.cpp
- Revision:
- 0:311a0646b95a
- Child:
- 4:d03fcf494eb6
diff -r 000000000000 -r 311a0646b95a Debug.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Debug.cpp Mon Nov 22 08:02:40 2010 +0000
@@ -0,0 +1,21 @@
+#include <cstdarg>
+#include "Debug.h"
+
+#ifdef __DEBUG
+
+void DebugHelper::Debug(const char* p_format, ...) {
+ va_list argp;
+
+ va_start(argp, p_format);
+ vprintf(p_format, argp);
+ va_end(argp);
+}
+
+void DebugHelper::BreakPoint(const char* p_file, int p_line) {
+ printf("Stop in %s at line %d\r\n", p_file, p_line);
+ fflush(stdout);
+ getchar();
+ fflush(stdin);
+}
+
+#endif // __DEBUG