You.i Engine
YiMemoryUtilities.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_MEMORY_UTILITIES_H_
3 #define _YI_MEMORY_UTILITIES_H_
4 
5 #include "framework/YiPredef.h"
6 
12 #ifdef DEBUG_HEAP
13 #define YI_FREE(a) YI_SYSTEM_FREE(a)
14 #define YI_MALLOC(a) YI_SYSTEM_MALLOC(a)
15 #define YI_REALLOC(a, b) YI_SYSTEM_REALLOC(a, b)
16 #else
17 extern void *YI_MALLOC(int32_t nSize);
18 extern void *YI_CALLOC(int32_t nSize);
19 extern void *YI_REALLOC(void *pOldBuf, int32_t nSize);
20 extern void YI_FREE(void *pBuf);
21 #endif
22 
25 #endif // _YI_MEMORY_UTILITIES_H_
void * YI_CALLOC(int32_t nSize)
void * YI_MALLOC(int32_t nSize)
void * YI_REALLOC(void *pOldBuf, int32_t nSize)
void YI_FREE(void *pBuf)