mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-28 17:03:44 +00:00
switch dbg arg ordering to make it backwards compatible
This commit is contained in:
parent
6c60da2832
commit
787d7f85ac
50 changed files with 54 additions and 53 deletions
|
@ -66,7 +66,7 @@ export fn roc_panic(msg: *RocStr, tag_id: u32) callconv(.C) void {
|
|||
std.process.exit(1);
|
||||
}
|
||||
|
||||
export fn roc_dbg(loc: *RocStr, src: *RocStr, msg: *RocStr) callconv(.C) void {
|
||||
export fn roc_dbg(loc: *RocStr, msg: *RocStr, src: *RocStr) callconv(.C) void {
|
||||
const stderr = std.io.getStdErr().writer();
|
||||
stderr.print("[{s}] {s} = {s}\n", .{ loc.asSlice(), src.asSlice(), msg.asSlice() }) catch unreachable;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue