Skip to content

Commit

Permalink
Merge pull request godotengine#1676 from dsnopek/gdextension-virtual-…
Browse files Browse the repository at this point in the history
…method-compat

Update for virtual method compatibility system
  • Loading branch information
dsnopek authored Jan 12, 2025
2 parents 012b8ff + 5c9529f commit 65046d0
Show file tree
Hide file tree
Showing 5 changed files with 13,719 additions and 864 deletions.
2 changes: 1 addition & 1 deletion binding_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us
# condition returns false (in such cases it can't compile due to ambiguity).
f"\t\tif constexpr (!std::is_same_v<decltype(&B::{method_name}), decltype(&T::{method_name})>) {{"
)
result.append(f"\t\t\tBIND_VIRTUAL_METHOD(T, {method_name});")
result.append(f"\t\t\tBIND_VIRTUAL_METHOD(T, {method_name}, {method['hash']});")
result.append("\t\t}")

result.append("\t}")
Expand Down
Loading

0 comments on commit 65046d0

Please sign in to comment.