mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Use consteval (experimental)
This commit is contained in:
parent
f8e05f8e3c
commit
3fc6375ec5
1 changed files with 2 additions and 8 deletions
|
@ -137,15 +137,9 @@ namespace logs
|
||||||
std::vector<std::string> get_channels();
|
std::vector<std::string> get_channels();
|
||||||
|
|
||||||
// Helper: no additional name specified
|
// 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;
|
return alt ? alt : name;
|
||||||
}
|
|
||||||
|
|
||||||
// Helper: special channel name specified
|
|
||||||
constexpr const char* make_channel_name(const char*, const char* name, ...)
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called in main()
|
// Called in main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue