Publish VCC Plus OSS source distribution for 3.6.2 build 60
This commit is contained in:
commit
c652a5276d
1192 files changed
+272368
No files matched your search
@@ -0,0 +1,59 @@
|
||||
/*****************************************************************************/
|
||||
/**
|
||||
xDebug.c
|
||||
|
||||
uEng - micro cross platform engine
|
||||
Copyright 2010 by Wes Gale All rights reserved.
|
||||
Used by permission in VccX
|
||||
*/
|
||||
/*****************************************************************************/
|
||||
|
||||
#include "xDebug.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <Windows.h>
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
int g_bTraceMessageLogging = TRUE;
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#if 0
|
||||
void _xDbgTrace(const void * pFile, const int iLine, const void * pFormat, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start(args,pFormat);
|
||||
|
||||
fprintf(stdout,"%s(%d) : ", (char *)pFile, iLine);
|
||||
|
||||
vfprintf(stdout,(char *)pFormat,args);
|
||||
|
||||
va_end(args);
|
||||
|
||||
fflush(stdout);
|
||||
}
|
||||
#else
|
||||
void _xDbgTrace(const char* pFile, const int iLine, const char* pFormat, ...)
|
||||
{
|
||||
va_list args;
|
||||
char temp[1024];
|
||||
|
||||
va_start(args, pFormat);
|
||||
|
||||
sprintf(temp, "%s(%d) : ", pFile, iLine);
|
||||
OutputDebugString(temp);
|
||||
|
||||
vsprintf(temp, pFormat, args);
|
||||
OutputDebugString(temp);
|
||||
|
||||
va_end(args);
|
||||
|
||||
// fflush(stdout);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in new issue
Block a user