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

GDExtension catch-up: class registration via StringName #27

Merged
merged 8 commits into from
Nov 20, 2022

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Nov 20, 2022

Makes the necessary changes to update to latest GDExtension API.

Migrates from using const char* to GDNativeStringNamePtr for all class, property and method related registrations. Also cleans up a few smaller things.

Closes #19.
Closes #25.

@Bromeon Bromeon added bug status: upstream Depending on upstream fix (typically Godot) c: ffi Low-level components and interaction with GDExtension API labels Nov 20, 2022
After checking Godot memory leaks (with --verbose), it turns out all that ceremony is not needed, and StringName instances are copied upon passing to FFI.
This reverts commit 8c91d89.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c: ffi Low-level components and interaction with GDExtension API status: upstream Depending on upstream fix (typically Godot)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not work on Godot 4 beta 5 (but does with beta4) GDExtension API has changed ! (a bit)
1 participant