Compile AUDIT on release builds
In Release, compile the code in constexpr-disabled context. this way it does not risk generating actual code but still compiles.
This commit is contained in:
@@ -59,7 +59,7 @@ using namespace std::literals;
|
|||||||
#if defined(_DEBUG) || defined(_AUDIT)
|
#if defined(_DEBUG) || defined(_AUDIT)
|
||||||
#define AUDIT(...) (static_cast<void>(ensure(__VA_ARGS__)))
|
#define AUDIT(...) (static_cast<void>(ensure(__VA_ARGS__)))
|
||||||
#else
|
#else
|
||||||
#define AUDIT(...) (static_cast<void>(0))
|
#define AUDIT(...) (static_cast<std::void_t<decltype((__VA_ARGS__))>>(0))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace utils
|
namespace utils
|
||||||
|
|||||||
Reference in New Issue
Block a user