natiny_script_make_bool
NatinyScriptValue natiny_script_make_bool(bool value);
Wraps a C boolean for use by a script.
Parameters
| Name | Type | Description |
|---|---|---|
value |
bool |
Boolean to wrap |
Returns
| Type | Description |
|---|---|
NatinyScriptValue |
Value tagged NATINY_SCRIPT_BOOL and containing value |
Example
natiny_script_set(script, "game.debug", natiny_script_make_bool(debug_enabled));