TurtleBrains  0.3.1
High quality, portable, C++ framework for rapid 2D game development.
tb_defines.h
1 
8 #ifndef _TurtleBrains_Defines_h_
9 #define _TurtleBrains_Defines_h_
10 
15 
19 #define tb_unused(parameter) ((void)parameter);
20 
21 namespace TurtleBrains
22 {
23  namespace Core
24  {
31  template <typename Type> void SafeDelete(Type*& objectPointer) { if (nullptr != objectPointer) { delete objectPointer; objectPointer = nullptr; } }
32 
39  template <typename Type> void SafeDeleteArray(Type*& arrayPointer) { if (nullptr != arrayPointer) { delete[] arrayPointer; arrayPointer = nullptr; } }
40 
41  }; /* namespace Core */
42 }; /* namespace TurtleBrains */
43 
44 namespace tbCore = TurtleBrains::Core;
45 
49 
50 #endif /* _TurtleBrains_Defines_h_ */
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