Add missing undefined symbols to be sure to use mine
Dependents: DS130x_I2CApp MCP41xxxApp FM24Vxx_I2CApp MCP320xApp ... more
Diff: Debug.cpp
- Revision:
- 0:311a0646b95a
- Child:
- 4:d03fcf494eb6
--- /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