| author | |
| committer | |
| log | 768a9780ca26166b4481c06e87bc6d090be71b64 |
| tree | 2d08078aeadf2a403bf53d11127c523f166f6cef |
| parent | f2a5fe443c5e0178c448d0737d0be037a100e469 |
5 files changed, 12 insertions(+), 12 deletions(-)
src/codegen.cpp+1-1| ... | ... | @@ -4849,7 +4849,7 @@ static void define_builtin_fns(CodeGen *g) { |
| 4849 | 4849 | create_builtin_fn_with_arg_count(g, BuiltinFnIdFence, "fence", 1); |
| 4850 | 4850 | create_builtin_fn_with_arg_count(g, BuiltinFnIdDivExact, "divExact", 2); |
| 4851 | 4851 | create_builtin_fn_with_arg_count(g, BuiltinFnIdTruncate, "truncate", 2); |
| 4852 | create_builtin_fn_with_arg_count(g, BuiltinFnIdCompileErr, "compileErr", 1); | |
| 4852 | create_builtin_fn_with_arg_count(g, BuiltinFnIdCompileErr, "compileError", 1); | |
| 4853 | 4853 | create_builtin_fn_with_arg_count(g, BuiltinFnIdIntType, "intType", 2); |
| 4854 | 4854 | } |
| 4855 | 4855 |
std/bootstrap.zig+1-1| ... | ... | @@ -25,7 +25,7 @@ export fn _start() -> unreachable { |
| 25 | 25 | argc = asm("mov (%%esp), %[argc]": [argc] "=r" (-> usize)); |
| 26 | 26 | argv = asm("lea 0x4(%%esp), %[argv]": [argv] "=r" (-> &&u8)); |
| 27 | 27 | }, |
| 28 | else => @compileErr("unsupported arch"), | |
| 28 | else => @compileError("unsupported arch"), | |
| 29 | 29 | } |
| 30 | 30 | callMainAndExit() |
| 31 | 31 | } |
std/io.zig+7-7| ... | ... | @@ -187,7 +187,7 @@ pub struct InStream { |
| 187 | 187 | return; |
| 188 | 188 | } |
| 189 | 189 | }, |
| 190 | else => @compileErr("unsupported OS"), | |
| 190 | else => @compileError("unsupported OS"), | |
| 191 | 191 | } |
| 192 | 192 | } |
| 193 | 193 | |
| ... | ... | @@ -208,7 +208,7 @@ pub struct InStream { |
| 208 | 208 | } |
| 209 | 209 | } |
| 210 | 210 | }, |
| 211 | else => @compileErr("unsupported OS"), | |
| 211 | else => @compileError("unsupported OS"), | |
| 212 | 212 | } |
| 213 | 213 | } |
| 214 | 214 | |
| ... | ... | @@ -237,7 +237,7 @@ pub struct InStream { |
| 237 | 237 | } |
| 238 | 238 | return index; |
| 239 | 239 | }, |
| 240 | else => @compileErr("unsupported OS"), | |
| 240 | else => @compileError("unsupported OS"), | |
| 241 | 241 | } |
| 242 | 242 | } |
| 243 | 243 | |
| ... | ... | @@ -298,7 +298,7 @@ pub struct InStream { |
| 298 | 298 | }; |
| 299 | 299 | } |
| 300 | 300 | }, |
| 301 | else => @compileErr("unsupported OS"), | |
| 301 | else => @compileError("unsupported OS"), | |
| 302 | 302 | } |
| 303 | 303 | } |
| 304 | 304 | |
| ... | ... | @@ -318,7 +318,7 @@ pub struct InStream { |
| 318 | 318 | }; |
| 319 | 319 | } |
| 320 | 320 | }, |
| 321 | else => @compileErr("unsupported OS"), | |
| 321 | else => @compileError("unsupported OS"), | |
| 322 | 322 | } |
| 323 | 323 | } |
| 324 | 324 | |
| ... | ... | @@ -339,7 +339,7 @@ pub struct InStream { |
| 339 | 339 | } |
| 340 | 340 | return result; |
| 341 | 341 | }, |
| 342 | else => @compileErr("unsupported OS"), | |
| 342 | else => @compileError("unsupported OS"), | |
| 343 | 343 | } |
| 344 | 344 | } |
| 345 | 345 | |
| ... | ... | @@ -433,6 +433,6 @@ pub fn openSelfExe(stream: &InStream) -> %void { |
| 433 | 433 | linux => { |
| 434 | 434 | %return stream.open("/proc/self/exe"); |
| 435 | 435 | }, |
| 436 | else => @compileErr("unsupported os"), | |
| 436 | else => @compileError("unsupported os"), | |
| 437 | 437 | } |
| 438 | 438 | } |
std/os.zig+2-2| ... | ... | @@ -18,7 +18,7 @@ pub fn getRandomBytes(buf: []u8) -> %void { |
| 18 | 18 | } |
| 19 | 19 | } |
| 20 | 20 | }, |
| 21 | else => @compileErr("unsupported os"), | |
| 21 | else => @compileError("unsupported os"), | |
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| ... | ... | @@ -30,6 +30,6 @@ pub fn abort() -> unreachable { |
| 30 | 30 | linux.raise(linux.SIGKILL); |
| 31 | 31 | while (true) {} |
| 32 | 32 | }, |
| 33 | else => @compileErr("unsupported os"), | |
| 33 | else => @compileError("unsupported os"), | |
| 34 | 34 | } |
| 35 | 35 | } |
std/rand.zig+1-1| ... | ... | @@ -87,7 +87,7 @@ pub struct Rand { |
| 87 | 87 | } else if (T == f64) { |
| 88 | 88 | 9007199254740992 |
| 89 | 89 | } else { |
| 90 | @compileErr("unknown floating point type" ++ @typeName(T)) | |
| 90 | @compileError("unknown floating point type" ++ @typeName(T)) | |
| 91 | 91 | }; |
| 92 | 92 | return T(r.rangeUnsigned(int_type, 0, precision)) / T(precision); |
| 93 | 93 | } |