bring back code that uses export and fix tests

partial revert of 1fdebc1dc4
This commit is contained in:
Andrew Kelley
2017-12-19 02:39:43 -05:00
parent 27ba4f0baf
commit 9d9201c3b4
19 changed files with 443 additions and 698 deletions

View File

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