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

FFI type inference #64

Merged
merged 7 commits into from
Mar 5, 2024
Merged

FFI type inference #64

merged 7 commits into from
Mar 5, 2024

Conversation

ashtonmeuser
Copy link
Owner

Allows Godot's 64-bit integers and floats to be cast to 32-bit depending on what the Wasm import/export function expects. This is applied to all values coming from host to guest i.e. import function return values and export function parameters.

Addresses #63 (thanks, @corysabol).

@ashtonmeuser ashtonmeuser merged commit 7ad22dd into master Mar 5, 2024
9 checks passed
ashtonmeuser added a commit that referenced this pull request Mar 5, 2024
* Record exported function param types

Require type converting Variant to Wasm value

* Validate argument count

* Record import function return types

* Separate import tests

* Type inference tests

* Fix test dummy import leaking Godot object

* Exported function argument count test
ashtonmeuser added a commit that referenced this pull request Mar 5, 2024
* Record exported function param types

Require type converting Variant to Wasm value

* Validate argument count

* Record import function return types

* Separate import tests

* Type inference tests

* Fix test dummy import leaking Godot object

* Exported function argument count test
@ashtonmeuser ashtonmeuser deleted the type-inference branch March 5, 2024 05:11
@ashtonmeuser ashtonmeuser linked an issue Mar 5, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameterized Functions Always Error
1 participant