PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
Go to the source code of this file.
Functions | |
void | init_memory_hook () |
Any code that might need to use PANDA_MALLOC or PANDA_FREE, or any methods of the global memory_hook object, at static init time, should ensure that it calls init_memory_hook() first to ensure that the pointer has been properly initialized. More... | |
Variables | |
MemoryHook * | memory_hook |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file dtoolbase.cxx.
void init_memory_hook | ( | ) |
Any code that might need to use PANDA_MALLOC or PANDA_FREE, or any methods of the global memory_hook object, at static init time, should ensure that it calls init_memory_hook() first to ensure that the pointer has been properly initialized.
There is no harm in calling this function more than once.
There is no need to call this function other than at static init time.
Definition at line 38 of file dtoolbase.cxx.
Referenced by Notify::ptr().