Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Sep 11, 2023
1 parent afb8afb commit 7f3596d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/add.whi
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export fn add(a: i32, b: i32): i32 {
fn _add(a: i32, b: i32): i32 {
return a + b
}

export fn add(a: i32, b: i32): i32 {
_add(a, b)
}
8 changes: 8 additions & 0 deletions examples/lunatic.whi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extern "lunatic::message" {
fn create_data(tag: i64, capacity: i64): none
}


export fn main(): none {
create_data(30, 56)
}
Binary file added test.wasm
Binary file not shown.

0 comments on commit 7f3596d

Please sign in to comment.