code wiki / (root) / nx_macro_test.nx

nx_macro_test.nx

buildroot/runtime/nx_macro_test.nx

3138 B87 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic macro
docsdependenciesstructsconstsfunctions

about

nx_macro_test.nx -- exercise the new @macro preprocessor. Per user 2026-05-15: "do c i want real foundational stuff". This test verifies: zero-arg macros, single-arg macros, multi-arg macros, recursive expansion, macros inside expressions.

dependencies 1 imports · 0 importers

nx_kernel_v2.nx nx_macro_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 test_zero_arg test_single_arg test_axiom_macro nx_k2_chain_new sys_mmap nx_k2_at test_recursive_in_expr

structs

none

consts

none

functions

28func test_zero_arg() -> nx_int
called by 1: main
34func test_single_arg() -> nx_int
called by 1: main
42func test_axiom_macro() -> nx_int
called by 1: main calls 2: nx_k2_chain_newnx_k2_at
52func test_recursive_in_expr() -> nx_int
called by 1: main
59func main() -> nx_exit