Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
761 B

/****************************************************************************
*
* Copyright (c)1997-1999 Microsoft Corporation, All Rights Reserved
*
*
*
*
*
*
*
****************************************************************************/
#include "stdafx.h"
#include "trace.h"
#ifdef _DEBUG
void __cdecl Trace(LPSTR lprgchFormat, ...)
{
char rgch[128], rgchOutput[256];
wsprintfA(rgch, "%s\n", lprgchFormat);
#if defined(_M_IX86)
wvsprintfA(rgchOutput, rgch, (LPSTR)(((LPSTR)&lprgchFormat) + sizeof(LPSTR)));
#else
{
va_list lpArgs;
va_start(lpArgs, lprgchFormat);
wvsprintfA(rgchOutput, rgch, lpArgs);
va_end(lpArgs);
}
#endif
OutputDebugStringA(rgchOutput);
}
#endif //_DEBUG