From: Petr Štetiar Date: Wed, 20 Nov 2019 17:02:39 +0000 (+0100) Subject: add assert.h component X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8baeeea1f52d7081aac81d80fdb55b8749d9392e;p=oweals%2Flibubox.git add assert.h component 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 --- diff --git a/assert.h b/assert.h new file mode 100644 index 0000000..84f5471 --- /dev/null +++ b/assert.h @@ -0,0 +1,9 @@ +#pragma once + +#ifdef NDEBUG +#undef NDEBUG +#include +#define NDEBUG +#else +#include +#endif