update roc_dbg in platforms

This commit is contained in:
Brendan Hansknecht 2023-12-01 20:34:57 -08:00
parent 3966d63e2f
commit 13d2238536
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
46 changed files with 94 additions and 89 deletions

View file

@ -63,8 +63,8 @@ pub unsafe extern "C" fn roc_panic(msg: *mut RocStr, tag_id: u32) {
}
#[no_mangle]
pub unsafe extern "C" fn roc_dbg(loc: *mut RocStr, msg: *mut RocStr) {
eprintln!("[{}] {}", &*loc, &*msg);
pub unsafe extern "C" fn roc_dbg(loc: *mut RocStr, src: *mut RocStr, msg: *mut RocStr) {
eprintln!("[{}] {} = {}", &*loc, &*src, &*msg);
}
#[no_mangle]