Shadowrun: Awakened 29 September 2011 - Build 871
rdlmalloc-options.h
Go to the documentation of this file.
00001 #ifdef _RAKNET_SUPPORT_DL_MALLOC
00002 
00003 #ifndef __DLMALLOC_OPTIONS_H
00004 #define __DLMALLOC_OPTIONS_H
00005 
00006 #include "NativeTypes.h"
00007 #include "Export.h"
00008 #include <stdio.h>
00009 #include <stdlib.h>
00010 
00011 #define MSPACES 1
00012 #define ONLY_MSPACES 1
00013 #define USE_DL_PREFIX 1
00014 #define NO_MALLINFO 1
00015 // Make it threadsafe
00016 #define USE_LOCKS 1
00017 
00018 extern RAK_DLL_EXPORT void * (*dlMallocMMap) (size_t size);
00019 extern RAK_DLL_EXPORT void * (*dlMallocDirectMMap) (size_t size);
00020 extern RAK_DLL_EXPORT int (*dlMallocMUnmap) (void* ptr, size_t size);
00021 
00022 #define MMAP(s)         dlMallocMMap(s)
00023 #define MUNMAP(a, s)    dlMallocMUnmap((a), (s))
00024 #define DIRECT_MMAP(s)       dlMallocDirectMMap(s)
00025 
00026 #endif
00027 
00028 #endif // _RAKNET_SUPPORT_DL_MALLOC

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net