Merge pull request #20464 from Calinou/add-editor-standalone-feature-tags

Add "editor" and "standalone" feature tags
This commit is contained in:
Rémi Verschelde 2018-07-28 10:49:27 +02:00 committed by GitHub
commit 4e4702e386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -577,6 +577,13 @@ bool OS::has_feature(const String &p_feature) {
if (p_feature == "release")
return true;
#endif
#ifdef TOOLS_ENABLED
if (p_feature == "editor")
return true;
#else
if (p_feature == "standalone")
return true;
#endif
if (sizeof(void *) == 8 && p_feature == "64") {
return true;