zig/example/multiple_files/foo.zig

12 lines
205 B
Zig
Raw Normal View History

use "libc.zig";
2015-12-01 05:53:37 +00:00
// purposefully conflicting function with main.zig
// but it's private so it should be OK
fn private_function() {
puts("it works!");
}
2015-12-01 05:53:37 +00:00
2015-12-01 09:08:58 +00:00
pub fn print_text() {
2015-12-01 05:53:37 +00:00
private_function();
}