authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-09-05 17:01:54-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-09-05 17:01:54-04:00
log768a9780ca26166b4481c06e87bc6d090be71b64
tree2d08078aeadf2a403bf53d11127c523f166f6cef
parentf2a5fe443c5e0178c448d0737d0be037a100e469

rename compileErr builtin to compileError


5 files changed, 12 insertions(+), 12 deletions(-)

src/codegen.cpp+1-1
......@@ -4849,7 +4849,7 @@ static void define_builtin_fns(CodeGen *g) {
48494849 create_builtin_fn_with_arg_count(g, BuiltinFnIdFence, "fence", 1);
48504850 create_builtin_fn_with_arg_count(g, BuiltinFnIdDivExact, "divExact", 2);
48514851 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);
48534853 create_builtin_fn_with_arg_count(g, BuiltinFnIdIntType, "intType", 2);
48544854}
48554855
std/bootstrap.zig+1-1
......@@ -25,7 +25,7 @@ export fn _start() -> unreachable {
2525 argc = asm("mov (%%esp), %[argc]": [argc] "=r" (-> usize));
2626 argv = asm("lea 0x4(%%esp), %[argv]": [argv] "=r" (-> &&u8));
2727 },
28 else => @compileErr("unsupported arch"),
28 else => @compileError("unsupported arch"),
2929 }
3030 callMainAndExit()
3131}
std/io.zig+7-7
......@@ -187,7 +187,7 @@ pub struct InStream {
187187 return;
188188 }
189189 },
190 else => @compileErr("unsupported OS"),
190 else => @compileError("unsupported OS"),
191191 }
192192 }
193193
......@@ -208,7 +208,7 @@ pub struct InStream {
208208 }
209209 }
210210 },
211 else => @compileErr("unsupported OS"),
211 else => @compileError("unsupported OS"),
212212 }
213213 }
214214
......@@ -237,7 +237,7 @@ pub struct InStream {
237237 }
238238 return index;
239239 },
240 else => @compileErr("unsupported OS"),
240 else => @compileError("unsupported OS"),
241241 }
242242 }
243243
......@@ -298,7 +298,7 @@ pub struct InStream {
298298 };
299299 }
300300 },
301 else => @compileErr("unsupported OS"),
301 else => @compileError("unsupported OS"),
302302 }
303303 }
304304
......@@ -318,7 +318,7 @@ pub struct InStream {
318318 };
319319 }
320320 },
321 else => @compileErr("unsupported OS"),
321 else => @compileError("unsupported OS"),
322322 }
323323 }
324324
......@@ -339,7 +339,7 @@ pub struct InStream {
339339 }
340340 return result;
341341 },
342 else => @compileErr("unsupported OS"),
342 else => @compileError("unsupported OS"),
343343 }
344344 }
345345
......@@ -433,6 +433,6 @@ pub fn openSelfExe(stream: &InStream) -> %void {
433433 linux => {
434434 %return stream.open("/proc/self/exe");
435435 },
436 else => @compileErr("unsupported os"),
436 else => @compileError("unsupported os"),
437437 }
438438}
std/os.zig+2-2
......@@ -18,7 +18,7 @@ pub fn getRandomBytes(buf: []u8) -> %void {
1818 }
1919 }
2020 },
21 else => @compileErr("unsupported os"),
21 else => @compileError("unsupported os"),
2222 }
2323}
2424
......@@ -30,6 +30,6 @@ pub fn abort() -> unreachable {
3030 linux.raise(linux.SIGKILL);
3131 while (true) {}
3232 },
33 else => @compileErr("unsupported os"),
33 else => @compileError("unsupported os"),
3434 }
3535}
std/rand.zig+1-1
......@@ -87,7 +87,7 @@ pub struct Rand {
8787 } else if (T == f64) {
8888 9007199254740992
8989 } else {
90 @compileErr("unknown floating point type" ++ @typeName(T))
90 @compileError("unknown floating point type" ++ @typeName(T))
9191 };
9292 return T(r.rangeUnsigned(int_type, 0, precision)) / T(precision);
9393 }