uce/site/doc/pages/unit_load.txt
2026-06-15 10:53:36 +00:00

17 lines
498 B
Plaintext

:sig
SharedUnit* unit_load(String file_name)
:params
file_name : unit source path
return value : native SharedUnit pointer (native runtime internals only)
:see
>unit_compile
>unit_info
>unit_call
:content
native-only internal API. `unit_load()` returns a process-local `SharedUnit*`, which is not a valid value across the wasm membrane and is not exposed to wasm units.
Use unit-facing APIs such as `unit_info()`, `unit_compile()`, `unit_call()`, `unit_render()`, or component helpers instead.