From 3fc6375ec5010628e2d2c7af05cf76072c7d0190 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 29 Apr 2021 20:54:17 +0300 Subject: [PATCH] Use consteval (experimental) --- rpcs3/util/logs.hpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/rpcs3/util/logs.hpp b/rpcs3/util/logs.hpp index 51feee506a..e31a9d193e 100644 --- a/rpcs3/util/logs.hpp +++ b/rpcs3/util/logs.hpp @@ -137,15 +137,9 @@ namespace logs std::vector get_channels(); // Helper: no additional name specified - constexpr const char* make_channel_name(const char* name) + consteval const char* make_channel_name(const char* name, const char* alt = nullptr) { - return name; - } - - // Helper: special channel name specified - constexpr const char* make_channel_name(const char*, const char* name, ...) - { - return name; + return alt ? alt : name; } // Called in main()