#pragma once // no ; after the macro needed #define DELETE_POINTER(pPointer) \ if (pPointer != nullptr)\ {\ delete pPointer;\ pPointer = nullptr;\ } // no ; after the macro needed #define DELETE_ARRAY(vArray) \ if (vArray != nullptr)\ {\ delete[] vArray;\ vArray = nullptr;\ }