Files
axyz/include/Engine/Core/Util/IfDebug.h
T
William Moberg 67cf008122 Bug fixing.
2016-02-10 18:03:58 +01:00

12 lines
292 B
C

// Example:
// DEBUG_IF(condition) {
// // This code is executed only in debug mode and if condition is true.
// }
// NOTE: condition statement is not executed at all in release mode.
#ifndef DEBUG_IF
#ifdef DEBUG
#define DEBUG_IF(c) if(c)
#else
#define DEBUG_IF(c) if(false)
#endif
#endif