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:
@@ -4,4 +4,5 @@
|
||||
#include <map>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "Core/Util/Logging.h"
|
||||
#include "Core/Util/Logging.h"
|
||||
#include "Core/Util/IfDebug.h"
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user