#ifndef NDEBUG #include #include #include #include #include /* #include #define new new(_NORMAL_BLOCK ,__FILE__, __LINE__) #define malloc(s) _malloc_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__) #define calloc(c, s) _calloc_dbg(c, s, _NORMAL_BLOCK, __FILE__, __LINE__) #define realloc(p, s) _realloc_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__) #define _expand(p, s) _expand_dbg(p, s, _NORMAL_BLOCK, __FILE__, __LINE__) #define free(p) _free_dbg(p, _NORMAL_BLOCK) */ #endif // Random stuff: #define SDL_LIL_ENDIAN 1234 #define SDL_BIG_ENDIAN 4321 #define SDL_BYTE_ORDER SDL_LIL_ENDIAN #define cassert(x) extern char cassert__##__LINE__ [x] #define debug_warn(x) assert(0&&x) #define XP_WIN #include "Errors.h" #include #define swprintf _snwprintf