W7 done done
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user