8baeeea1f5
In order to allow seamless assert() usage in release builds without the need for fiddling with CMake C flags as CMake adds -DNDEBUG switch in release builds which disable assert(). Signed-off-by: Petr Štetiar <ynezz@true.cz>
9 lines
110 B
C
9 lines
110 B
C
#pragma once
|
|
|
|
#ifdef NDEBUG
|
|
#undef NDEBUG
|
|
#include <assert.h>
|
|
#define NDEBUG
|
|
#else
|
|
#include <assert.h>
|
|
#endif
|