mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
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:
parent
862727e9bf
commit
90b6912daa
@ -59,7 +59,7 @@ using namespace std::literals;
|
||||
#if defined(_DEBUG) || defined(_AUDIT)
|
||||
#define AUDIT(...) (static_cast<void>(ensure(__VA_ARGS__)))
|
||||
#else
|
||||
#define AUDIT(...) (static_cast<void>(0))
|
||||
#define AUDIT(...) (static_cast<std::void_t<decltype((__VA_ARGS__))>>(0))
|
||||
#endif
|
||||
|
||||
namespace utils
|
||||
|
Loading…
Reference in New Issue
Block a user