Fluid is a customised scripting language for the Script class.
Sets any variable in a loaded Fluid script.
| Parameter | Description |
|---|---|
| Script | Pointer to a Fluid script. |
| Name | The name of the variable to set. |
| Type | A valid field type must be indicated, e.g. FD_STRING, FD_POINTER, FD_INT, FD_DOUBLE, FD_INT64. |
| Variable | A variable that matches the indicated Type. |
The SetVariable() function provides a method for setting global variables in a Fluid script prior to execution of that script. If the script is cached, the variable settings will be available on the next activation.
| Okay | The variable was defined successfully. |
|---|---|
| Args | Invalid arguments passed to function. |
| ObjectCorrupt | Privately maintained memory has become inaccessible. |
| FieldTypeMismatch | A valid field type was not specified in the Type parameter. |
JIT behaviour options
| Name | Description |
|---|---|
| JOF::DIAGNOSE | Cancels aborting on error so that the full script is parsed. Enables deeper log tracing. |
| JOF::DUMP_BYTECODE | Print a disassembly of bytecode instructions after parsing. |
| JOF::PROFILE | Use timers to profile JIT parsing. Required to configure run-time profiling. |
| JOF::TRACE | Synonym for TRACE_TOKENS | TRACE_EXPECT | TRACE_BOUNDARY | TRACE_OPERATORS | TRACE_REGISTERS | TRACE_CFG | TRACE_ASSIGNMENTS | TRACE_VALUE_CATEGORY |
| JOF::TRACE_ASSIGNMENTS | Trace PreparedAssignment lifecycle and hazard handling. |
| JOF::TRACE_BOUNDARY | Enable log messages for AST boundary crossing. |
| JOF::TRACE_CFG | Trace ControlFlowGraph edge creation and patching. |
| JOF::TRACE_EXPECT | Enable trace expectation messages during parsing. |
| JOF::TRACE_OPERATORS | Trace OperatorEmitter method calls and decisions. |
| JOF::TRACE_REGISTERS | Trace RegisterAllocator reservations and releases. |
| JOF::TRACE_TOKENS | Trace the emission of tokens. |
| JOF::TRACE_VALUE_CATEGORY | Trace ValueUse/ValueSlot/LValue operations. |