Skip to content

GDExtension catch-up: class registration via StringName #27

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

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
@Bromeon Bromeon force-pushed the feature/api-string-names branch from c805a2e to ce0a235 Compare November 20, 2022 15:28
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.
@Bromeon Bromeon force-pushed the feature/api-string-names branch from ce0a235 to 098e59b Compare November 20, 2022 15:35
@Bromeon Bromeon merged commit c348694 into master Nov 20, 2022
@Bromeon Bromeon deleted the feature/api-string-names branch November 20, 2022 15:41
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