summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikael Hermansson <mikael@hermansson.io>2024-06-24 19:52:21 +0200
committerMikael Hermansson <mikael@hermansson.io>2024-06-24 19:52:21 +0200
commit53d3d66f9f66d5182492337489dc801b7bc6b3a1 (patch)
treeb176a7108b1974fa77678f94d7ed24fbc2056816
parent04bf7d4cade645a5923cc80d87ac1c6109e2cdfe (diff)
downloadredot-engine-53d3d66f9f66d5182492337489dc801b7bc6b3a1.tar.gz
Add `nothreads` feature tag to signify lack of `THREADS_ENABLED`
-rw-r--r--core/os/os.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp
index fa7f23ded0..40d8601af3 100644
--- a/core/os/os.cpp
+++ b/core/os/os.cpp
@@ -513,6 +513,10 @@ bool OS::has_feature(const String &p_feature) {
if (p_feature == "threads") {
return true;
}
+#else
+ if (p_feature == "nothreads") {
+ return true;
+ }
#endif
if (_check_internal_feature_support(p_feature)) {