code wiki / (root) / nx_macro_v6_test.nx

nx_macro_v6_test.nx

buildroot/runtime/nx_macro_v6_test.nx

3679 B116 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic macro
docsdependenciesstructsconstsfunctions

about

nx_macro_v6_test.nx -- exercise @if(expr) + @else + @elif.

dependencies 1 imports · 0 importers

nx_kernel_v2.nx nx_macro_v6_test.nx

imports: nx_kernel_v2.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main has_modern_version version_doubled_eq_14 version_in_range or_short_circuit has_fast slow_not_defined else_path elif_chain nested_kept paren_arithmetic

structs

none

consts

none

functions

11func has_modern_version() -> nx_int { return 1 }
called by 1: main
15func has_modern_version() -> nx_int { return BROKEN_LEGACY }
20func version_doubled_eq_14() -> nx_int { return 1 }
called by 1: main
25func version_in_range() -> nx_int { return 1 }
called by 1: main
30func or_short_circuit() -> nx_int { return 1 }
called by 1: main
35func has_fast() -> nx_int { return 1 }
called by 1: main
39func has_slow() -> nx_int { return BROKEN_NO_SLOW }
44func slow_not_defined() -> nx_int { return 1 }
called by 1: main
49func else_path() -> nx_int { return BROKEN_GT_100 }
called by 1: main
51func else_path() -> nx_int { return 7 }
56func elif_chain() -> nx_int { return BROKEN_V1 }
called by 1: main
58func elif_chain() -> nx_int { return 7 }
60func elif_chain() -> nx_int { return BROKEN_V8 }
62func elif_chain() -> nx_int { return BROKEN_ELSE }
74func paren_arithmetic() -> nx_int { return 1 }
called by 1: main
78func main() -> nx_exit