1
0
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:
Elad Ashkenazi 2024-04-23 17:24:22 +03:00 committed by GitHub
parent 862727e9bf
commit 90b6912daa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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