mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 15:20:18 +00:00
better result api logging
This commit is contained in:
parent
039082a938
commit
a898493202
@ -27,14 +27,14 @@ static mut RESULT_SIZE: AtomicUsize = AtomicUsize::new(0);
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe fn get_result_ptr() -> usize {
|
||||
log("sdk.get_result_ptr\n");
|
||||
log(format!("sdk.get_result_ptr, returns {}\n", *RESULT_PTR.get_mut()));
|
||||
|
||||
*RESULT_PTR.get_mut()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe fn get_result_size() -> usize {
|
||||
log("sdk.get_result_size\n");
|
||||
log(format!("sdk.get_result_size, returns {}\n", *RESULT_SIZE.get_mut()));
|
||||
|
||||
*RESULT_SIZE.get_mut()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user