From 90b6912daacc98dba3111831a7770b7ec65f9d95 Mon Sep 17 00:00:00 2001 From: Elad Ashkenazi <18193363+elad335@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:24:22 +0300 Subject: [PATCH] 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. --- rpcs3/util/types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/util/types.hpp b/rpcs3/util/types.hpp index 549dc0ded4..52a1493b60 100644 --- a/rpcs3/util/types.hpp +++ b/rpcs3/util/types.hpp @@ -59,7 +59,7 @@ using namespace std::literals; #if defined(_DEBUG) || defined(_AUDIT) #define AUDIT(...) (static_cast(ensure(__VA_ARGS__))) #else -#define AUDIT(...) (static_cast(0)) +#define AUDIT(...) (static_cast>(0)) #endif namespace utils