Go to the documentation of this file.
31 #ifndef _IAKPLUGINMEMALLOC_H_
32 #define _IAKPLUGINMEMALLOC_H_
79 #if defined (AK_MEMDEBUG)
83 virtual void * dMalloc(
85 const char* in_pszFile,
91 virtual void * dMalign(
94 const char* in_pszFile,
102 #if defined (AK_MEMDEBUG)
106 return in_pAllocator->dMalloc( size, szFile, ulLine );
115 return in_pAllocator->Malloc( size );
120 #if defined (AK_MEMDEBUG)
121 #define AK_PLUGIN_NEW(_allocator,_what) new((_allocator),__FILE__,__LINE__) _what
122 #define AK_PLUGIN_ALLOC(_allocator,_size) (_allocator)->dMalloc((_size),__FILE__,__LINE__)
123 #define AK_PLUGIN_ALLOC_ALIGN(_allocator,_size,_align) (_allocator)->dMalign((_size),(_align),__FILE__,__LINE__)
133 #define AK_PLUGIN_NEW(_allocator,_what) new(_allocator) _what
142 #define AK_PLUGIN_ALLOC(_allocator,_size) (_allocator)->Malloc((_size))
152 #define AK_PLUGIN_ALLOC_ALIGN(_allocator,_size,_align) (_allocator)->Malign((_size),(_align))
167 in_pAllocator->
Free( in_pObject );
177 #define AK_PLUGIN_FREE(_allocator,_pvmem) (_allocator)->Free((_pvmem))
179 #endif // _IAKPLUGINMEMALLOC_H_
AkForceInline void AK_PLUGIN_DELETE(AK::IAkPluginMemAlloc *in_pAllocator, T *in_pObject)
virtual void * Malloc(size_t in_uSize)=0
virtual ~IAkPluginMemAlloc()
Virtual destructor on interface to avoid warnings.
virtual void Free(void *in_pMemAddress)=0
virtual void * Malign(size_t in_uSize, size_t in_uAlignment)=0
Tell us about your project. We're here to help.
Register your project and we'll help you get started with no strings attached!
Get started with Wwise