wip export rewrite

This commit is contained in:
Andrew Kelley
2017-12-18 09:59:57 -05:00
parent 68f6332343
commit 1fdebc1dc4
46 changed files with 1487 additions and 1194 deletions

View File

@@ -1,3 +1,6 @@
export fn add(a: i32, b: i32) -> i32 {
comptime {
@export("add", add);
}
extern fn add(a: i32, b: i32) -> i32 {
a + b
}