Skip to content

Conversation

@Bromeon
Copy link
Member

@Bromeon Bromeon commented Jul 6, 2025

Provides a safe abstraction around RawGd::ffi_cast(), making the "keep either source or dest, but manually forget the other" pattern easier to use correctly. This will also make it easier to avoid unnecessary refcount increments during casting in follow-up changes.

Also simplifies RawGd::is_cast_valid() a lot.

@Bromeon Bromeon added this to the 0.3.x milestone Jul 6, 2025
@Bromeon Bromeon added quality-of-life No new functionality, but improves ergonomics/internals c: ffi Low-level components and interaction with GDExtension API labels Jul 6, 2025
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1226

@Bromeon Bromeon added this pull request to the merge queue Jul 6, 2025
Merged via the queue into master with commit 8268cff Jul 6, 2025
18 checks passed
@Bromeon Bromeon deleted the qol/ffi-cast branch July 6, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: ffi Low-level components and interaction with GDExtension API quality-of-life No new functionality, but improves ergonomics/internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants