Go to the source code of this file.
◆ lbm_get_var()
Get value of variable at index.
- Parameters
-
index | variable index to access. |
- Returns
- Value of variable at index. This value if NIL if there is no binding.
◆ lbm_get_variable_by_index()
Get the value of a variable index.
- Parameters
-
i | Index of variable to access. |
- Returns
- Value of variable at index.
◆ lbm_get_variable_name_by_index()
const char* lbm_get_variable_name_by_index |
( |
int |
index | ) |
|
Lookup what the name of the variable associated with a specific index in the variable storage is.
- Parameters
-
index | Index of variable of interes. |
- Returns
- Pointer to a string on success or null if no variable is associated with that index.
◆ lbm_get_variable_table()
Get a pointer to the variable storage area.
- Returns
- Pointer to storage area or NULL on failure.
◆ lbm_set_var()
Set value of a variable
- Parameters
-
index | Index of variable to set. \paran value Value to set the variable to. |
- Returns
- Value of variable or NIL if index is out of range.
◆ lbm_variables_init()
int lbm_variables_init |
( |
lbm_value * |
variable_storage, |
|
|
int |
variable_storage_size |
|
) |
| |
Initialize the variable storage area
- Parameters
-
variable_storage | Pointer to array where variables are stored. |
variable_storage_size | Number of variables that can be stored in the array. |
- Returns
- 1 on success and 0 on failure.