code wiki / _hdl_build / nx_game_sandbox_gate.nx
nx_game_sandbox_gate.nx
buildroot/runtime/_hdl_build/nx_game_sandbox_gate.nx
dependencies 5 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_game_raster.nxnx_png.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 15 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 18 | func sb_place(board: *i64, gw_: i64, x: i64, y: i64, t: i64) -> i64 { board[y*gw_+x]=t; return 0 } called by 1: main |
| 19 | func sb_remove(board: *i64, gw_: i64, x: i64, y: i64) -> i64 { board[y*gw_+x]=0; return 0 } called by 1: main |
| 20 | func sb_count(board: *i64, n: i64) -> i64 { var c: i64=0; var i: i64=0; while i<n { if board[i]!=0 { c=c+1 } i=i+1 } return c } called by 1: main |
| 21 | func sb_clear(board: *i64, n: i64) -> i64 { var i: i64=0; while i<n { board[i]=0; i=i+1 } return 0 } |
| 23 | func sb_build_house(board: *i64, gw_: i64) -> i64 |
| 30 | func sb_render(fb: *i64, w: i64, h: i64, cell: i64, gw_: i64, gh_: i64, board: *i64) -> i64 |
| 51 | func main() -> i64 |