diff options
author | Dave Gauer <dave@ratfactor.com> | 2021-02-16 18:10:02 -0500 |
---|---|---|
committer | Dave Gauer <dave@ratfactor.com> | 2021-02-16 18:10:02 -0500 |
commit | 7b337cb51abda134ea86f61589e7c6fcafb71a30 (patch) | |
tree | e1642f50f2b72536ec45b773a087c773a2c95deb /exercises/42_pointers4.zig | |
parent | f0c50bc8c67fc205aad708be49a78282cf2b00a8 (diff) | |
download | ziglings-7b337cb51abda134ea86f61589e7c6fcafb71a30.tar.gz ziglings-7b337cb51abda134ea86f61589e7c6fcafb71a30.tar.bz2 ziglings-7b337cb51abda134ea86f61589e7c6fcafb71a30.tar.xz ziglings-7b337cb51abda134ea86f61589e7c6fcafb71a30.zip |
Exit rather than return upon version failure (#14)
A plain `zig build` was exiting as expected after the version check
failure did an early 'return'.
But `zig build 01` (specifying a step) would print the fail message
and then continue...but fail to find the step (which was not added).
Calling `exit()` solves this. Calling it with an error status code
causes vomiting in the build system (since, you know, there was an
error). So returning with `exit(0)` is the way to go here.
Diffstat (limited to 'exercises/42_pointers4.zig')
0 files changed, 0 insertions, 0 deletions