uce/site/doc/pages/load.txt
2026-06-16 23:02:45 +00:00

21 lines
491 B
Plaintext

:sig
#load "myfile.uce"
:params
file name : name of an UCE file that should be included
:see
>ob
:content
Includes another UCE file.
Use `#load` when you want the current file to pull in declarations or reusable content from another UCE source file.
:example
// #load "file.uce" includes another unit at COMPILE time (a preprocessor directive,
// used at file top level). At RUNTIME, unit_render()/unit_call() invoke another unit:
unit_render("examples/sample_unit.uce");
print("\n");