On Windows, _DEBUG is defined by CMake if CMAKE_BUILD_TYPE is Debug. But on other platforms, this is not the case and thus in debug mode, the guard checks are not enabled. Instead, rely on the NDEBUG define, which is always defined in release mode (Release, RelWithDebInfo and MinSizeRel). This works reliably on all platforms: It is also used to enable or disable assertions. |
||
|---|---|---|
| .. | ||
| arrays.h | ||
| BaseTypes.h | ||
| Common.h | ||
| ConstantUnion.h | ||
| glslang_c_interface.h | ||
| glslang_c_shader_types.h | ||
| InfoSink.h | ||
| InitializeGlobals.h | ||
| intermediate.h | ||
| PoolAlloc.h | ||
| ResourceLimits.h | ||
| ShHandle.h | ||
| SpirvIntrinsics.h | ||
| Types.h | ||