Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import wasm
|
||||
|
||||
fn main() {
|
||||
mut m := wasm.Module{}
|
||||
mut func := m.new_function('add', [.i32_t, .i32_t], [.i32_t])
|
||||
{
|
||||
func.local_get(0)
|
||||
func.local_get(1)
|
||||
func.add(.i32_t)
|
||||
}
|
||||
m.commit(func, true) // `export: true`
|
||||
print(m.compile().bytestr())
|
||||
}
|
||||
Reference in new issue
Block a user