mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
bye ffi
This commit is contained in:
parent
7668d7d592
commit
1922a144f2
1 changed files with 0 additions and 3 deletions
|
@ -41,9 +41,6 @@ pub unsafe fn roc_dealloc(c_ptr: *mut c_void, _alignment: u32) {
|
|||
pub unsafe fn roc_panic(msg: &RocStr, tag_id: u32) {
|
||||
use roc_gen_llvm::llvm::build::PanicTagId;
|
||||
|
||||
use std::ffi::CStr;
|
||||
use std::os::raw::c_char;
|
||||
|
||||
match PanicTagId::try_from(tag_id) {
|
||||
Ok(PanicTagId::RocPanic) => {
|
||||
eprintln!("Roc hit a panic: {}", msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue