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
Debug.cpp
- Committer:
- Yann
- Date:
- 2010-11-22
- Revision:
- 2:12cc94a627cf
- Parent:
- 0:311a0646b95a
- Child:
- 4:d03fcf494eb6
File content as of revision 2:12cc94a627cf:
#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