mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
remove debug prints
This commit is contained in:
parent
0aabae19ce
commit
8a2baaf0cf
1 changed files with 3 additions and 7 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue