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

Ensure GDCLASS can be used outside the godot namespace. #823

Merged

Conversation

Faless
Copy link
Contributor

@Faless Faless commented Sep 1, 2022

The GDCLASS macro should not assume to be called inside the godot namespace and should thus prefix function calls for that namespace with ::godot:: to ensure proper namespace referencing.

I suggest we also split the "internal" stuff (used by generated bindings) from wrapped.hpp into a separate wrapped_internal.hpp file to further convey the idea that GDCLASS is for users, but direct access to Wrapped and the GDNATIVE_CLASS macro are for internal use.

The `GDCLASS` macro should not assume to be called inside the `godot`
namespace and should thus prefix function calls for that namespace with
`::godot::` to ensure proper namespace referencing.
@Faless Faless added bug This has been identified as a bug topic:gdextension This relates to the new Godot 4 extension implementation labels Sep 1, 2022
@Faless Faless requested a review from bruvzg September 1, 2022 04:29
@akien-mga akien-mga merged commit 862d1f1 into godotengine:master Sep 2, 2022
@akien-mga
Copy link
Member

Thanks!

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 topic:gdextension This relates to the new Godot 4 extension implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants