mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 15:57:38 +00:00
Marked open_object_is_supported constexpr
This commit is contained in:
parent
baa1a87a8a
commit
4f0e8e1e5b
@ -43,15 +43,6 @@ static lg::log_domain log_desktop("desktop");
|
||||
|
||||
namespace desktop {
|
||||
|
||||
bool open_object_is_supported()
|
||||
{
|
||||
#if defined(_X11) || defined(__APPLE__) || defined(_WIN32)
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool open_object(const std::string& path_or_url)
|
||||
{
|
||||
LOG_DU << "open_object(): requested object: " << path_or_url << '\n';
|
||||
|
@ -50,6 +50,13 @@ namespace desktop {
|
||||
bool open_object(const std::string& path_or_url);
|
||||
|
||||
/** Returns whether open_object() is supported/implemented for the current platform. */
|
||||
bool open_object_is_supported();
|
||||
constexpr bool open_object_is_supported()
|
||||
{
|
||||
#if defined(_X11) || defined(__APPLE__) || defined(_WIN32)
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user