Skip to content

Commit

Permalink
TODO: I don’t think defwi is needed. Removing it will clear up the AP…
Browse files Browse the repository at this point in the history
…I surface area.
  • Loading branch information
RoyalIcing committed Jan 6, 2024
1 parent 2cf1869 commit c9f868c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions guides/composing-modules.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ Mix.install([{:orb, "~> 0.0.18"}, :orb_wasmtime])
defmodule BumpAllocator do
use Orb

I32.global(
bump_offset: 0xFF,
bump_mark: 0
)
I32.global(bump_offset: 0xFF)

Memory.pages(1)

Expand Down
1 change: 1 addition & 0 deletions lib/orb/defw_dsl.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ defmodule Orb.DefwDSL do
define(call, :public, result, locals, block, __CALLER__)
end

# TODO: I don’t think defwi is needed. Removing it will clear up the API surface area.
defmacro defwi(call, do: block) do
define(call, :internal, nil, [], block, __CALLER__)
end
Expand Down

0 comments on commit c9f868c

Please sign in to comment.