Files
wagic/projects/mtg/include/config.h
2013-10-31 23:48:19 +01:00

42 lines
724 B
C

#ifndef _DEBUG_H_
#define _DEBUG_H_
#if ((defined WIN32) || (defined WP8))
#define snprintf sprintf_s
#endif
#if (defined (WIN32) || defined (LINUX)) && defined (_DEBUG)
#define TESTSUITE 1
#endif
#include "limits.h"
#if defined (_DEBUG) && defined (WIN32) && (!defined LINUX)
#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
#ifdef WIN32
#define AI_CHANGE_TESTING
#endif
//#define RENDER_AI_STATS
#endif
#endif