code wiki / (root) / nx_imported_body_page_gate_t59.nx

nx_imported_body_page_gate_t59.nx source

↩ module page · 10 lines · 622 B

1import "nx_game_page_workspace_body_t59.nx" 2import "nx_jsbalance.nx" 3func main()->i64{ 4 let out:*u8=sys_mmap(65536);let count:i64=gpe_body_context(out,0,2,20260910) 5 let check:*i64=sys_mmap(JSB_O_N*8) as *i64;let rc:i64=jsb_check(out,count,check) 6 gpe_puts("BODY_BRIDGE bytes=");gpe_pn(count);gpe_puts(" lexer_rc=");gpe_pn(rc);gpe_puts(" scanned=");gpe_pn(check[JSB_O_SCAN]);gpe_puts("\n") 7 if rc!=0||check[JSB_O_SCAN]!=count{return 3} 8 gpe_puts("---BODY-BRIDGE-BEGIN---\n");sys_write(1,out,count);gpe_puts("---BODY-BRIDGE-END---\n") 9 gpe_puts("PASS native body bridge emitted; served execution UNQUALIFIED\n");return 0 10}