1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Use consteval (experimental)

This commit is contained in:
Nekotekina 2021-04-29 20:54:17 +03:00
parent f8e05f8e3c
commit 3fc6375ec5

View File

@ -137,15 +137,9 @@ namespace logs
std::vector<std::string> 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()