Skip to content

Commit 7604427

Browse files
committed
Fix use of undeclared identifier 'set_typed' in in typed_dictionary.hpp when dictionary.hpp is also included.
1 parent 55a86ba commit 7604427

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

binding_generator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,11 @@ def generate_builtin_class_header(builtin_api, size, used_classes, fully_used_cl
699699
result.append("#include <godot_cpp/core/defs.hpp>")
700700
result.append("")
701701

702+
# Fixes the "use of undeclared identifier 'set_typed'" compile error when typed_dictionary.hpp & dictionary.hpp are both included
703+
if class_name == "Dictionary":
704+
result.append("#include <godot_cpp/core/version.hpp>")
705+
result.append("")
706+
702707
# Special cases.
703708
if class_name == "String":
704709
result.append("#include <godot_cpp/classes/global_constants.hpp>")

0 commit comments

Comments
 (0)