Add missing undefined symbols to be sure to use mine

Dependents:   DS130x_I2CApp MCP41xxxApp FM24Vxx_I2CApp MCP320xApp ... more

Debug.cpp

Committer:
Yann
Date:
2010-11-22
Revision:
0:311a0646b95a
Child:
4:d03fcf494eb6

File content as of revision 0:311a0646b95a:

#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