summaryrefslogtreecommitdiff
path: root/Ivy/IvyStdAfx.cpp
blob: a7b35f2cff3da2ed5e410d0fa4822ad077b47c9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// stdafx.cpp : source file that includes just the standard includes
//	libIvy.pch will be the pre-compiled header
//	stdafx.obj will contain the pre-compiled type information

#include "stdafx.h"

#include <windows.h>

void DebugTrace ( const char *fmt , ... )
{
	char buffer[4096];
	va_list args;
	
	va_start( args, fmt );     
	vsprintf( buffer, fmt, args );
	va_end( args );
	OutputDebugStringA( buffer );
}
#ifdef WIN32
#ifdef _DEBUG
#include <crtdbg.h>
void* __cdecl  operator new(size_t nSize, const char * lpszFileName, int nLine)
	{
	return ::operator new(nSize, _NORMAL_BLOCK, lpszFileName, nLine);
	}
void __cdecl operator delete(void *p, const char * lpszFileName, int nLine)
	{
	::operator delete(p, _NORMAL_BLOCK, lpszFileName, nLine);
	}
#endif
#endif