zig/test/standalone/load_dynamic_library/add.zig
Andrew Kelley 48de57d824 add basic std lib code for loading dynamic libraries
this is going to only work for very basic libraries;
I plan to slowly add more features over time to support more
complicated libraries
2018-06-16 17:01:23 -04:00

4 lines
56 B
Zig

export fn add(a: i32, b: i32) i32 {
return a + b;
}