diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-09-28 02:33:32 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-09-28 02:33:32 -0400 |
| commit | b581da41f82cd1e19701030bf47675b426608adf (patch) | |
| tree | bbfebb52858935e2e91ffabd8b0c2b02fb58ca27 /std/io.zig | |
| parent | e5fd8efcb60cd0223a7dd5e5825d3b9efc006c2a (diff) | |
| download | zig-b581da41f82cd1e19701030bf47675b426608adf.tar.gz zig-b581da41f82cd1e19701030bf47675b426608adf.zip | |
remove compiler directives
* add `setFnTest`, `setFnVisible`, `setFnStaticEval`,
`setFnNoInline` builtin functions to replace previous
directive functionality
* add `coldcc` and `nakedcc` as keywords which can be used as part
of a function prototype.
* `setDebugSafety` builtin can be used to set debug safety features
at a per block scope level.
* closes #169
Diffstat (limited to 'std/io.zig')
| -rw-r--r-- | std/io.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/std/io.zig b/std/io.zig index 938368c585..be8702f44a 100644 --- a/std/io.zig +++ b/std/io.zig @@ -423,8 +423,9 @@ fn bufPrintUnsigned(inline T: type, out_buf: []u8, x: T) -> usize { return len; } -#attribute("test") fn parseU64DigitTooBig() { + @setFnTest(this, true); + parseUnsigned(u64, "123a", 10) %% |err| { if (err == error.InvalidChar) return; @unreachable(); |
