remove debug prints

This commit is contained in:
Folkert 2021-08-27 00:05:13 +02:00
parent 0aabae19ce
commit 8a2baaf0cf

View file

@ -28,10 +28,7 @@ extern "C" {
#[no_mangle] #[no_mangle]
pub unsafe fn roc_alloc(size: usize, _alignment: u32) -> *mut c_void { pub unsafe fn roc_alloc(size: usize, _alignment: u32) -> *mut c_void {
let answer = libc::malloc(size); libc::malloc(size)
println!("---Allocating: {:?}", answer);
answer
} }
#[no_mangle] #[no_mangle]
@ -41,13 +38,12 @@ pub unsafe fn roc_realloc(
_old_size: usize, _old_size: usize,
_alignment: u32, _alignment: u32,
) -> *mut c_void { ) -> *mut c_void {
return libc::realloc(c_ptr, new_size); libc::realloc(c_ptr, new_size)
} }
#[no_mangle] #[no_mangle]
pub unsafe fn roc_dealloc(c_ptr: *mut c_void, _alignment: u32) { pub unsafe fn roc_dealloc(c_ptr: *mut c_void, _alignment: u32) {
println!("---Deallocating: {:?}", c_ptr); libc::free(c_ptr)
return libc::free(c_ptr);
} }
#[no_mangle] #[no_mangle]