26 #ifndef USE_MEMORY_NOWRAPPERS 28 #define ALLOC_MEMORY_BASE \ 29 inline void *operator new(size_t size) RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT) { \ 30 return PANDA_MALLOC_SINGLE(size); \ 32 inline void *operator new(size_t size, void *ptr) { \ 36 inline void operator delete(void *ptr) { \ 37 PANDA_FREE_SINGLE(ptr); \ 39 inline void operator delete(void *, void *) { \ 41 inline void *operator new[](size_t size) RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT) { \ 42 return PANDA_MALLOC_ARRAY(size); \ 44 inline void *operator new[](size_t size, void *ptr) { \ 48 inline void operator delete[](void *ptr) { \ 49 PANDA_FREE_ARRAY(ptr); \ 51 inline void operator delete[](void *, void *) { \ 54 #else // USE_MEMORY_NOWRAPPERS 56 #define ALLOC_MEMORY_BASE 58 #endif // USE_MEMORY_NOWRAPPERS PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is intended to be the base class of all objects in Panda that might be allocated and delet...