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

cleanup: improve handling of non-extism pointer types in host_fn macro #60

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zshipko
Copy link
Contributor

@zshipko zshipko commented Jul 18, 2024

Currently host_fn only supports Extism pointer arguments, this PR updates host_fn to preserve Wasm-native arguments (i32, i64, f32, f64) when passed as arguments, or returned from a host function.

TODO:

  • Add some examples and make sure the macro translates the types correctly
  • Consider doing something similar for shared_fn

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.

1 participant