Skip to content

Comments

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

Draft
zshipko wants to merge 1 commit intomainfrom
host-fn-macro-types
Draft

cleanup: improve handling of non-extism pointer types in host_fn macro#60
zshipko wants to merge 1 commit intomainfrom
host-fn-macro-types

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