GME
13
|
00001 // stdafx.cpp : source file that includes just the standard includes 00002 // stdafx.pch will be the pre-compiled header 00003 // stdafx.obj will contain the pre-compiled type information 00004 00005 #include "stdafx.h" 00006 00007 #ifdef _ATL_STATIC_REGISTRY 00008 #include <statreg.h> 00009 #endif 00010 00011 00012 #ifdef CORE_USE_EASTL 00013 // EASTL impl 00014 void* operator new[](size_t size, const char* pName, int flags, 00015 unsigned debugFlags, const char* file, int line) 00016 { 00017 return malloc(size); 00018 } 00019 void* operator new[](size_t size, size_t alignment, size_t alignmentOffset, 00020 const char* pName, int flags, unsigned debugFlags, const char* file, int line) 00021 { 00022 // MSDN: The storage space pointed to by the return value is guaranteed to be suitably aligned for storage of any type of object. 00023 return malloc(size); 00024 } 00025 00026 int Vsnprintf8(char8_t* pDestination, size_t n, const char8_t* pFormat, va_list arguments) 00027 { 00028 #ifdef _MSC_VER 00029 return _vsnprintf(pDestination, n, pFormat, arguments); 00030 #else 00031 return vsnprintf(pDestination, n, pFormat, arguments); 00032 #endif 00033 } 00034 00035 #include "allocator.cpp" 00036 #include "assert.cpp" 00037 #include "fixed_pool.cpp" 00038 #include "hashtable.cpp" 00039 #include "string.cpp" 00040 #endif