mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-15 15:15:40 +00:00
Improved formatting
This commit is contained in:
parent
c315cc43a3
commit
116ed86668
@ -1,12 +1,8 @@
|
|||||||
use libc::{c_void, c_int};
|
|
||||||
use crate::webassembly::Instance;
|
use crate::webassembly::Instance;
|
||||||
|
use libc::{c_int, c_void};
|
||||||
|
|
||||||
/// setjmp
|
/// setjmp
|
||||||
pub extern "C" fn __setjmp(
|
pub extern "C" fn __setjmp(env_addr: u32, instance: &mut Instance) -> c_int {
|
||||||
env_addr: u32,
|
|
||||||
instance: &mut Instance,
|
|
||||||
) -> c_int {
|
|
||||||
debug!("emscripten::__setjmp (setjmp)");
|
debug!("emscripten::__setjmp (setjmp)");
|
||||||
unsafe {
|
unsafe {
|
||||||
let env = instance.memory_offset_addr(0, env_addr as usize) as *mut c_void;
|
let env = instance.memory_offset_addr(0, env_addr as usize) as *mut c_void;
|
||||||
@ -14,13 +10,8 @@ pub extern "C" fn __setjmp(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// longjmp
|
/// longjmp
|
||||||
pub extern "C" fn __longjmp(
|
pub extern "C" fn __longjmp(env_addr: u32, val: c_int, instance: &mut Instance) -> ! {
|
||||||
env_addr: u32,
|
|
||||||
val: c_int,
|
|
||||||
instance: &mut Instance,
|
|
||||||
) -> ! {
|
|
||||||
debug!("emscripten::__longjmp (longjmp) {}", val);
|
debug!("emscripten::__longjmp (longjmp) {}", val);
|
||||||
unsafe {
|
unsafe {
|
||||||
let env = instance.memory_offset_addr(0, env_addr as usize) as *mut c_void;
|
let env = instance.memory_offset_addr(0, env_addr as usize) as *mut c_void;
|
||||||
|
Loading…
Reference in New Issue
Block a user