zig/example/multiple_files/foo.zig

12 lines
215 B
Zig
Raw Normal View History

2016-01-16 09:45:52 +08:00
import "std.zig";
2015-12-01 13:53:37 +08:00
// purposefully conflicting function with main.zig
// but it's private so it should be OK
fn private_function() {
%%stdout.printf("OK 1\n");
}
2015-12-01 13:53:37 +08:00
pub fn print_text() {
2015-12-01 13:53:37 +08:00
private_function();
}