code wiki / (root) / nx_imported_current_exports_t262.nx

nx_imported_current_exports_t262.nx source

↩ module page · 8 lines · 684 B

1import "nx_wasm_vm.nx" 2import "nx_gate_verdict.nx" 3func main()->i64{ 4 var n:i64=0;let b:*u8=sys_read_file("/volume1/homes/elderwesto/nishihost/buildroot/knowledge/gates/inspection-distance-plain-t234.wasm",&n) 5 if (b as i64)<=0{return 3};let m:*WasmMod=wm_new(b,n) 6 if wm_parse(m)!=0{return 3} 7 gv_kv("exports",m.n_exports);gv_kv("body_init",wm_find_export(m,"body_init"));gv_kv("body_bind",wm_find_export(m,"body_bind"));gv_kv("body_stage_off",wm_find_export(m,"body_stage_off"));gv_kv("body_static_bounds",wm_find_export(m,"body_static_bounds"));gv_kv("player_axis",wm_find_export(m,"wc_player_axis_apply"));gv_kv("inspection_frame",wm_find_export(m,"inspection_frame")) 8 return 0 9}