Skip to content

Commit

Permalink
Add nothreads feature tag to signify lack of THREADS_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
mihe committed Jun 24, 2024
1 parent 04bf7d4 commit 53d3d66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/os/os.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 53d3d66

Please sign in to comment.