mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12: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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue