LSFramework/Software/Framework/src/LSMacros.h
Luis Stanglmeier 03338fa8a6 changed class names
generall reorganization
2022-06-23 17:09:20 +02:00

17 lines
No EOL
286 B
C

#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;\
}