W7 done done

This commit is contained in:
root
2026-06-15 10:53:36 +00:00
parent f5637bb587
commit 04745f39a8
35 changed files with 323 additions and 60 deletions
+7 -14
View File
@@ -2,22 +2,15 @@
SharedUnit* unit_load(String file_name)
:params
file_name : UCE file to load
return value : loaded shared unit, or `null` if the unit could not be loaded
file_name : unit source path
return value : native SharedUnit pointer (native runtime internals only)
:see
>runtime
unit_render
unit_call
load
unit_info
>unit_compile
>unit_info
>unit_call
:content
Loads a UCE compilation unit and returns its in-memory `SharedUnit` record.
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.
This is a low-level runtime helper. Most application code should prefer `unit_render()`, `unit_call()`, `component()`, or `component_render()`.
Related:
- PHP: `include`, `require`, autoloaders, and lazy-loading of modules
- JavaScript / Node.js: dynamic `import()`, lazy module loading, or require-on-demand patterns
Use unit-facing APIs such as `unit_info()`, `unit_compile()`, `unit_call()`, `unit_render()`, or component helpers instead.