![]()  | 
  
    Polygon Crucher SDK - Documentation
    
   Documentation 
   | 
 
Set memory callbacks, memory leaks and low level allocation functions. More...
Set memory callbacks, memory leaks and low level allocation functions.
#include "XMemoryMacros.h"Go to the source code of this file.
Classes | |
| struct | XMemoryCallback | 
| Defines a set of memory callback handlers that can be modified.  More... | |
Macros | |
| #define | xmalloc_array(nSize, nCount) xmalloc((nSize)*(nCount)) | 
| #define | xfree_array(p, nCount) xfree(p) | 
| #define | xnew_array(nSize, nCount) xnew((nSize)*(nCount)) | 
| #define | xdelete_array(p, nCount) xdelete(p) | 
Typedefs | |
| typedef enum XAllocType | XAllocType | 
| typedef void *(* | mallocCallback) (size_t newSize, XAllocType type) | 
| Called by malloc / calloc / new operation.  | |
| typedef void *(* | reallocCallback) (void *pointer, size_t newSize) | 
| Called by realloc operation.  | |
| typedef void(* | freeCallback) (void *pointer, XAllocType type) | 
| Called by free / delete operation.  | |
| typedef struct XMemoryCallback | XMemoryCallback | 
Enumerations | |
| enum | XAllocType {  XALLOC_UNDEFINED = 0 , XALLOC_MALLOC , XALLOC_CALLOC , XALLOC_FREE , XALLOC_NEW , XALLOC_DELETE , XALLOC_MALLOC_ALIGNED , XALLOC_CALLOC_ALIGNED , XALLOC_NEW_ALIGNED }  | 
| Defines the required allocation type provided through XMemoryCallback callback.  More... | |
Functions | |
Main library allocators (superseed C standard allocators)  | |
| DLL_TOOLSFUNCTION void * | xmalloc (size_t nSize) | 
| DLL_TOOLSFUNCTION void | xfree (void *p) | 
| DLL_TOOLSFUNCTION void * | xrealloc (void *p, size_t newSize) | 
| DLL_TOOLSFUNCTION void * | xcalloc (size_t numElement, size_t elementSize) | 
| DLL_TOOLSFUNCTION void * | xnew (size_t nSize) | 
| Only used by macros xNew.  | |
| DLL_TOOLSFUNCTION void | xdelete (void *p) | 
| Only used by macros xDelete.  | |
Variables | |
| DLL_TOOLSFUNCTION XMemoryCallback | memoryCallbackNotify | 
Defines the required allocation type provided through XMemoryCallback callback.
      
  | 
  extern | 
Use this memory callback object to receive notification on new, malloc, realloc, free, delete