forked from nothke/intro-to-zig-talk
Recreated most of the demo code from talk
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
const main = @import("main.zig");
|
||||
|
||||
member: i32,
|
||||
|
||||
// Must be pub to be available to other files
|
||||
pub const pi = 3.14;
|
||||
|
||||
pub fn add() i32 {
|
||||
pub fn infiniteLoop() i32 {
|
||||
try main.main();
|
||||
|
||||
return 3;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user