mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
update roc_dbg in platforms
This commit is contained in:
parent
3966d63e2f
commit
13d2238536
46 changed files with 94 additions and 89 deletions
|
@ -38,8 +38,12 @@ pub unsafe extern "C" fn roc_panic(msg: *mut roc_std::RocStr, _tag_id: u32) {
|
|||
|
||||
#[cfg(test)]
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn roc_dbg(loc: *mut roc_std::RocStr, msg: *mut roc_std::RocStr) {
|
||||
eprintln!("[{}] {}", &*loc, &*msg);
|
||||
pub unsafe extern "C" fn roc_dbg(
|
||||
loc: *mut roc_std::RocStr,
|
||||
src: *mut roc_std::RocStr,
|
||||
msg: *mut roc_std::RocStr,
|
||||
) {
|
||||
eprintln!("[{}] {} = {}", &*loc, &*src, &*msg);
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue