Adapted all emscripten import functions

This commit is contained in:
Syrus
2019-01-31 17:44:57 -08:00
parent 5066431422
commit 8725fef474
4 changed files with 190 additions and 778 deletions

View File

@ -25,7 +25,8 @@ pub extern "C" fn __setjmp(env_addr: u32, ctx: &mut Ctx) -> c_int {
}
/// longjmp
pub extern "C" fn __longjmp(env_addr: u32, val: c_int, ctx: &mut Ctx) -> ! {
#[allow(unreachable_code)]
pub extern "C" fn __longjmp(env_addr: u32, val: c_int, ctx: &mut Ctx) {
debug!("emscripten::__longjmp (longmp)");
unsafe {
// We retrieve the jump index from the env address