Marked open_object_is_supported constexpr

This commit is contained in:
Charles Dang 2020-12-02 01:03:34 +11:00
parent baa1a87a8a
commit 4f0e8e1e5b
2 changed files with 8 additions and 10 deletions

View File

@ -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';

View File

@ -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
}
}