| author | |
| committer | |
| log | 5fd754c84a6018f19b595154752c61c1cff3f757 |
| tree | d4e991eb1f9808c4a810c335b130f2a8213ad7c0 |
| parent | c6fff3b2c0796180b2232248d8b19f9e29b94011 |
1 files changed, 1 insertions(+), 12 deletions(-)
example/hello_world/hello.zig+1-12| ... | ... | @@ -6,18 +6,7 @@ extern { |
| 6 | 6 | fn exit(code: i32) -> unreachable; |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | fn loop(a : i32) { | |
| 10 | if a == 0 { | |
| 11 | goto done; | |
| 12 | } | |
| 13 | puts("loop"); | |
| 14 | loop(a - 1); | |
| 15 | ||
| 16 | done: | |
| 17 | return; | |
| 18 | } | |
| 19 | ||
| 20 | 9 | export fn _start() -> unreachable { |
| 21 | loop(3); | |
| 10 | puts("Hello, world!"); | |
| 22 | 11 | exit(0); |
| 23 | 12 | } |