8 #ifndef _TurtleBrains_Defines_h_
9 #define _TurtleBrains_Defines_h_
19 #define tb_unused(parameter) ((void)parameter);
31 template <
typename Type>
void SafeDelete(Type*& objectPointer) {
if (
nullptr != objectPointer) {
delete objectPointer; objectPointer =
nullptr; } }
39 template <
typename Type>
void SafeDeleteArray(Type*& arrayPointer) {
if (
nullptr != arrayPointer) {
delete[] arrayPointer; arrayPointer =
nullptr; } }
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
void SafeDeleteArray(Type *&arrayPointer)
Definition: tb_defines.h:39
void SafeDelete(Type *&objectPointer)
Definition: tb_defines.h:31
Contains core functionality for each component of the API.
Definition: tb_debug_logger.h:91