#pragma once #define DELETE_POINTER(pPointer) \ if (pPointer != nullptr)\ {\ delete pPointer;\ pPointer = nullptr;\ } #define DELETE_ARRAY(vArray) \ if (vArray != nullptr)\ {\ delete[] vArray;\ vArray = nullptr;\ }