ability to generate shared library and h file

This commit is contained in:
Andrew Kelley
2015-11-29 17:28:28 -07:00
parent f4721857ed
commit 9b477230e0
3 changed files with 167 additions and 19 deletions

5
example/mathtest.zig Normal file
View File

@@ -0,0 +1,5 @@
export library "mathtest";
export fn add(a: i32, b: i32) -> i32 {
return a + b;
}