changing doc format and HTML literals

This commit is contained in:
udo
2026-04-22 01:56:46 +00:00
parent 8223dcc6b3
commit f7b066b374
123 changed files with 1917 additions and 1611 deletions
+13 -8
View File
@@ -7,26 +7,31 @@ function_name : name of the function to invoke
call_param : optional, call parameter
return value : DTree* returned from function
:desc
:see
>ob
:content
Calls an exported function inside another UCE file.
Use `unit_call()` when you need a structured data exchange between units rather than rendered HTML output.
Use `unit_call()` when you need structured data exchange between units rather than rendered HTML output.
The callee must expose an `EXPORT` function whose name matches `function_name`. Arguments are passed through `call_param`, and the return value is a `DTree*` owned by the callee.
:Example
Example:
```cpp
// export a function
EXPORT DTree* test_func(DTree* call_param)
{
print("HELLO FROM TEST FUNCTION");
return(0);
}
// use that function in another file
unit_call("call_file_funcs.uce", "test_func");
```
:related
**PHP:** `include`, `require`, or calling a function from an included module, especially when returning arrays or objects instead of rendering a view.
**JavaScript / Node.js:** Importing a module and calling an exported function, or dynamically loading a module and passing structured arguments.
Related:
:see
>ob
- PHP: `include`, `require`, or calling a function from an included module, especially when returning arrays or objects instead of rendering a view
- JavaScript / Node.js: importing a module and calling an exported function, or dynamically loading a module and passing structured arguments