Added an macro IF_DEBUG_IS(x) that executes if run in debug mode, AABB has a check so max and min corners are set properly in debug mode.

This commit is contained in:
William Moberg
2015-12-17 13:31:54 +01:00
parent a23d69af9a
commit 03d5f0dd67
3 changed files with 33 additions and 2 deletions
+2 -1
View File
@@ -4,4 +4,5 @@
#include <map>
#include <unordered_map>
#include "Core/Util/Logging.h"
#include "Core/Util/Logging.h"
#include "Core/Util/IfDebug.h"
+17
View File
@@ -0,0 +1,17 @@
//Example:
//IF_DEBUG_IS(true) {
// //Stuff done only in debug mode.
//}
//
//IF_DEBUG_IS(false) {
// //Stuff done only in release mode.
//} else {
// //Stuff only in debug.
//}
#ifndef IF_DEBUG_IS
#ifndef DEBUG
#define IF_DEBUG_IS(c) if(c)
#else
#define IF_DEBUG_IS(c) if(!c)
#endif
#endif