Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
Main Page
Namespaces
Classes
Files
File List
src
util
delete.h
1
#pragma once
2
3
#include "util/assert.h"
4
5
#ifdef _DEBUG
6
#define BLOWBOX_DELETE(ptr) { if (ptr != nullptr) { delete ptr; ptr = nullptr; } }
7
#define BLOWBOX_DELETE_GUARANTEE(ptr) { if (ptr != nullptr) { delete ptr; ptr = nullptr; } else { BLOWBOX_ASSERT(false); }}
8
#else
9
#define BLOWBOX_DELETE(ptr) { if (ptr != nullptr) { delete ptr; ptr = nullptr; } }
10
#define BLOWBOX_DELETE_GUARANTEE(ptr) { if (ptr != nullptr) { delete ptr; ptr = nullptr; } }
11
#endif
Generated on Wed Jul 19 2017 23:46:11 for Blowbox 2017 by
1.8.11