Files
wagic/projects/mtg/include/config.h
wrenczes@gmail.com ae227a7cb8 Minor project cleanup:
- Consolidated duplicate PSP / PSPENV defines;
- removed some ancillary file crap from the 2010 projects;
- pulled 1xx references from the makefiles;
- consolidated multiple #defines for OutputDebugString into one header (previously was split between config.h & DebugRoutines.h).
2011-04-22 13:12:36 +00:00

39 lines
629 B
C

#ifndef _DEBUG_H_
#define _DEBUG_H_
#if WIN32
#define snprintf sprintf_s
#endif
#if (defined (WIN32) || defined (LINUX)) && defined (_DEBUG)
#define TESTSUITE 1
#endif
#include "limits.h"
#if defined (_DEBUG) && defined (WIN32)
#include "crtdbg.h"
#define NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
#else
#define NEW new
#endif
#ifndef RESPATH
#define RESPATH "Res"
#endif
#ifndef MAX
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef MIN
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
// Debug options - comment/uncomment as needed
//#define DEBUG_CACHE
#ifdef _DEBUG
//#define RENDER_AI_STATS
#endif
#endif