Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly refer to godot namespace in GDREGISTER_*_CLASS() macros #1477

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

dsnopek
Copy link
Collaborator

@dsnopek dsnopek commented Jun 1, 2024

Currently, the GDREGISTER_*_CLASS() macros assume that user code has using namespace godot. This PR makes the macros explicitly refer to the godot namespace, so they can be used even without that.

@dsnopek dsnopek added bug This has been identified as a bug cherrypick:4.1 cherrypick:4.2 labels Jun 1, 2024
@dsnopek dsnopek added this to the 4.x milestone Jun 1, 2024
@dsnopek dsnopek requested a review from a team as a code owner June 1, 2024 13:47
Copy link
Contributor

@paddy-exe paddy-exe left a comment

Choose a reason for hiding this comment

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

LGTM

@Kehom
Copy link
Contributor

Kehom commented Jun 1, 2024

Just updated my code that explicitly used the ClassDB functions to use the "new" macros. Working great!

@dsnopek dsnopek merged commit 21d526e into godotengine:master Jun 1, 2024
12 checks passed
@dsnopek
Copy link
Collaborator Author

dsnopek commented Jun 14, 2024

Cherry-picked for 4.1 in PR #1491

@dsnopek
Copy link
Collaborator Author

dsnopek commented Jun 14, 2024

Cherry-picked for 4.2 in PR #1492

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Jul 22, 2024
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.

5 participants