mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +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
|
@ -275,7 +275,7 @@ __attribute__((noreturn)) void roc_panic(struct RocStr *msg, unsigned int tag_id
|
|||
longjmp(exception_buffer, 1);
|
||||
}
|
||||
|
||||
void roc_dbg(struct RocStr *loc, struct RocStr *src, struct RocStr *msg) {
|
||||
void roc_dbg(struct RocStr *loc, struct RocStr *msg, struct RocStr *src) {
|
||||
char* loc_bytes = is_small_str(*loc) ? (char*)loc : (char*)loc->bytes;
|
||||
char* src_bytes = is_small_str(*src) ? (char*)src : (char*)src->bytes;
|
||||
char* msg_bytes = is_small_str(*msg) ? (char*)msg : (char*)msg->bytes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue