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

(typename $car_config
  (flags (@witx repr u8)
    $automatic
    $awd
    $suv))

(module $flags
  (@interface func (export "configure_car")
    (param $old_config $car_config)
    (param $old_config_by_ptr (@witx const_pointer $car_config))
    (result $error (expected $car_config (error $errno)))
  )
)