code wiki / (root) / nx_macro_v4_test.nx

nx_macro_v4_test.nx

buildroot/runtime/nx_macro_v4_test.nx

2196 B66 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic macro
docsdependenciesstructsconstsfunctions

about

nx_macro_v4_test.nx -- exercise auto-injected target defines + @undef.

dependencies 1 imports · 0 importers

nx_kernel_v2.nx nx_macro_v4_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 active_target_value compiler_present experiment_v1 experiment_v2

structs

none

consts

none

functions

9func active_target_value() -> nx_int { return 64 }
called by 1: main
13func active_target_value() -> nx_int { return 0 }
17func compiler_present() -> nx_int { return 1 }
called by 1: main
25func experiment_v1() -> nx_int { return 100 }
called by 1: main
33func experiment_v2() -> nx_int { return 200 }
called by 1: main
38func IF_THIS_COMPILED_UNDEF_FAILED() -> nx_int { return BROKEN_IDENT_PROOF }
41func main() -> nx_exit