home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 Mobile
/
Chip_Mobile_2001.iso
/
palm
/
business
/
printcar
/
printcar.exe
/
src
/
Util
/
Assert.cc
< prev
next >
Wrap
C/C++ Source or Header
|
2000-06-03
|
840b
|
42 lines
//
// $Id: Assert.cc,v 1.1.1.1 2000/06/02 22:23:02 sergey Exp $
//
#include <Pilot.h>
#include <stdarg.h>
#include <stdio.h>
#include "Assert.h"
#ifdef DEBUG
namespace Util
{
void DebugMessage(const char* file, int line, const char* format, ...)
{
va_list args;
char buffer[256];
va_start(args, format);
StrVPrintF(buffer, format, args);
va_end(args);
ErrDisplayFileLineMsg(file, line, buffer);
}
void DebugPrintf(const char* format, ...)
{
va_list args;
char buffer[256];
va_start(args, format);
StrVPrintF(buffer, format, args);
va_end(args);
for (int i = 0, len = StrLen(buffer); i < len; ++i)
putchar(buffer[i]);
}
} // namespace Util
#endif // DEBUG