Skip to content

Added missing namespace prefixes to GDVIRTUAL macros - #1864

Merged
dsnopek merged 1 commit into
godotengine:masterfrom
janos-ijgyarto:master
Nov 30, 2025
Merged

dsnopek merged 1 commit into
godotengine:masterfrom
janos-ijgyarto:master

Conversation

@janos-ijgyarto

Copy link
Copy Markdown
Contributor

The codegen for the GDVIRTUAL macros was missing the namespace and enum prefix for the method flags. This meant that any class declaration that tried to use a GDVIRTUAL macro would either have to be in the godot namespace, or would have to use using namespace godot, neither of which is ideal.

This change simply adds the prefixes, which means the above workarounds will no longer be necessary, allowing developers to use namespaces as they see fit in their custom Godot objects.

@janos-ijgyarto
janos-ijgyarto requested a review from a team as a code owner October 9, 2025 22:21

@dsnopek dsnopek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@dsnopek dsnopek added bug This has been identified as a bug cherrypick:4.4 cherrypick:4.5 labels Nov 29, 2025
@dsnopek dsnopek added this to the 4.x milestone Nov 29, 2025
@dsnopek
dsnopek merged commit 4ae2669 into godotengine:master Nov 30, 2025
@dsnopek

dsnopek commented Nov 30, 2025 •

Copy link
Copy Markdown
Collaborator

Cherry-picked for 4.4 in PR #1890

@dsnopek

dsnopek commented Nov 30, 2025

Copy link
Copy Markdown
Collaborator

Cherry-picked for 4.5 in PR #1891

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This has been identified as a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants