View Source Orb.Import.DSL (Orb v0.1.1)

DSL for declaring within Elixir module that get converted to (import …) expressions in WebAssembly.

Summary

Functions

Declare the name and signature of function that will be imported.

Functions

Link to this macro

defw(call, result_type \\ nil)

View Source (macro)

Declare the name and signature of function that will be imported.

defmodule Log do
  use Orb.Import, name: :log

  defw(int32(a: I32))
  defw(int64(a: I64))
  defw(two_int32(a: I32, b: I32))
end