Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
assert.h
1 #pragma once
2 
3 #include <crtdbg.h>
4 
5 #ifdef _DEBUG
6 #define BLOWBOX_ASSERT(assertion) { if (!(assertion)) { _CrtDbgReport(_CRT_ASSERT, __FILE__, __LINE__, #assertion, "An assertion failed in blowbox."); _CrtDbgBreak(); } }
7 #define BLOWBOX_ASSERT_HR(assertion) { if (assertion != S_OK) { _CrtDbgReport(_CRT_ASSERT, __FILE__, __LINE__, #assertion, "An assertion failed in blowbox."); _CrtDbgBreak(); } }
8 #else
9 #define BLOWBOX_ASSERT(assertion) (assertion);
10 #define BLOWBOX_ASSERT_HR(assertion) (assertion);
11 #endif