Skip to content

Commit

Permalink
fix: export main
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Sep 28, 2023
1 parent 5dea3f8 commit e02b01a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion examples/builtin.whi

This file was deleted.

6 changes: 0 additions & 6 deletions examples/core_test.whi

This file was deleted.

2 changes: 1 addition & 1 deletion examples/lunatic.whi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ extern "lunatic::process" {
}


fn main(): none {
export fn main(): none {
sleep_ms(10000)
}
2 changes: 1 addition & 1 deletion examples/mod.whi
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ fn x(): i32 {
return 2
}

fn main() {
export fn main() {
test.x()
}
2 changes: 1 addition & 1 deletion examples/wasi.whi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ extern "wasi_unstable" {
fn proc_exit(rval: i32): none
}

fn main(): none {
export fn main(): none {
proc_exit(0)
}

0 comments on commit e02b01a

Please sign in to comment.