Helper utilities and type definitions for working with UniotLisp.
More...
Helper utilities and type definitions for working with UniotLisp.
This file provides wrapper types and utility functions to simplify the usage of the UniotLisp interpreter within the Uniot Core.
◆ exportPrimitiveNameTo
| #define exportPrimitiveNameTo |
( |
| name | ) |
|
Value: char name[sizeof(__func__)]; \
snprintf(name, sizeof(name), __func__)
Exports the current function name to a provided variable.
- Parameters
-
| name | The variable name that will hold the function name. |
◆ getPrimitiveName
| #define getPrimitiveName |
( |
| ) |
|
Value:
Macro to get the current function name.
- Return values
-
| name | The name of the current function. |
◆ LispStartHook
Called after the interpreter is built and before the script is evaluated.
◆ LispStopHook
Called before the interpreter is destroyed.
◆ Object
A pointer to a Lisp object structure.
◆ Root
A generic pointer representing the root of a Lisp environment.
◆ VarObject
A pointer to a pointer to a Lisp object structure.
Used for functions that may modify the Lisp object reference.
◆ LispStartReason
Why a script started running.
| Enumerator |
|---|
| Restored | A stored script, run from AppKit::attach() during boot.
|
| Received | A script that arrived over MQTT.
|
◆ LispStopReason
Why a script stopped running.
| Enumerator |
|---|
| Completed | The script ran to the end, or a finite task used up its passes.
|
| Replaced | A new script arrived and took its place.
|
| Cleared | An empty script arrived, which means "run nothing".
|
| Failed | A Lisp error tore the machine down.
|