switch dbg arg ordering to make it backwards compatible

This commit is contained in:
Brendan Hansknecht 2023-12-02 16:52:32 -08:00
parent 6c60da2832
commit 787d7f85ac
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
50 changed files with 54 additions and 53 deletions

View file

@ -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;