Lines Matching refs:ptr
49 #define DELETE_AND_NULLIFY(ptr) \
50 if ((ptr) != nullptr) { \
51 delete (ptr); \
52 (ptr) = nullptr; \
55 #define DELETE_ARRAY_AND_NULLIFY(ptr) \
56 if ((ptr) != nullptr) { \
57 delete[] (ptr); \
58 (ptr) = nullptr; \
61 #define FREE_AND_NULLPTR(ptr) \
62 if ((ptr) != nullptr) { \
63 free (ptr); \
64 (ptr) = nullptr; \