Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/wiggle/tests/strings.witx
1692 views
(use "errno.witx")

(typename $ret u32)

(module $strings
  (@interface func (export "hello_string")
    (param $a_string string)
    (result $error (expected $ret (error $errno)))
  )

  (@interface func (export "multi_string")
    (param $a string)
    (param $b string)
    (param $c string)
    (result $error (expected $ret (error $errno)))
  )
)