zig/example/multiple_files/main.zig

15 lines
227 B
Zig
Raw Normal View History

2015-12-01 17:29:21 +08:00
export executable "test-multiple-files";
2016-01-16 09:45:52 +08:00
import "std.zig";
import "foo.zig";
pub fn main(args: [][]u8) i32 => {
2015-12-01 13:53:37 +08:00
private_function();
print_str("OK 2\n");
return 0;
2015-12-01 13:53:37 +08:00
}
2016-01-14 09:15:51 +08:00
fn private_function() => {
print_text();
}