| ... | @@ -8423,8 +8423,9 @@ pub fn build(b: *Builder) void { | ... | @@ -8423,8 +8423,9 @@ pub fn build(b: *Builder) void { |
| 8423 | detected at compile-time, Zig emits a compile error and refuses to continue. | 8423 | detected at compile-time, Zig emits a compile error and refuses to continue. |
| 8424 | Most undefined behavior that cannot be detected at compile-time can be detected | 8424 | Most undefined behavior that cannot be detected at compile-time can be detected |
| 8425 | at runtime. In these cases, Zig has safety checks. Safety checks can be disabled | 8425 | at runtime. In these cases, Zig has safety checks. Safety checks can be disabled |
| 8426 | on a per-block basis with {#link|setRuntimeSafety#}. The {#link|ReleaseFast#} | 8426 | on a per-block basis with {#link|@setRuntimeSafety#}. The {#link|ReleaseFast#} |
| 8427 | build mode disables all safety checks in order to facilitate optimizations. | 8427 | and {#link|ReleaseSmall#} build modes disable all safety checks (except where overridden |
| | 8428 | by {#link|@setRuntimeSafety#}) in order to facilitate optimizations. |
| 8428 | </p> | 8429 | </p> |
| 8429 | <p> | 8430 | <p> |
| 8430 | When a safety check fails, Zig crashes with a stack trace, like this: | 8431 | When a safety check fails, Zig crashes with a stack trace, like this: |