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:
parent
f8e05f8e3c
commit
3fc6375ec5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user