Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

271 B
Raw Blame
(use "errno.witx")

(typename $fd (handle))

(module $handle_examples
  (@interface func (export "fd_create")
    (result $error (expected $fd (error $errno))))
  (@interface func (export "fd_consume")
    (param $fd $fd)
    (result $error (expected (error $errno))))
)