Go to the source code of this file.
◆ as_boolean_destroy()
static void as_boolean_destroy |
( |
as_boolean * | boolean | ) |
|
|
inlinestatic |
◆ as_boolean_fromval()
◆ as_boolean_get()
static bool as_boolean_get |
( |
const as_boolean * | boolean | ) |
|
|
inlinestatic |
◆ as_boolean_getorelse()
static bool as_boolean_getorelse |
( |
const as_boolean * | boolean, |
|
|
bool | fallback ) |
|
inlinestatic |
Get the bool value. If boolean is NULL, then return the fallback value.
Definition at line 129 of file as_boolean.h.
◆ as_boolean_init()
Initialize a stack allocated as_boolean
with the given boolean value.
- Parameters
-
boolean | The as_boolean to initialize. |
value | The bool value. |
- Returns
- On success, the initialized value. Otherwise NULL.
◆ as_boolean_new()
Creates a new heap allocated as_boolean
and initializes with the given boolean value.
- Parameters
-
- Returns
- On success, the newly allocated value. Otherwise NULL.
◆ as_boolean_tobool()
static bool as_boolean_tobool |
( |
const as_boolean * | boolean | ) |
|
|
inlinestatic |
◆ as_boolean_toval()
◆ as_boolean_val_destroy()
Internal helper function for destroying an as_val.
◆ as_boolean_val_hashcode()
Internal helper function for getting the hashcode of an as_val.
◆ as_boolean_val_tostring()
Internal helper function for getting the string representation of an as_val.
◆ as_false
False value.
Use this when you need to use an as_boolean
containing true
, rather than allocating a new as_boolean
.
◆ as_true
True value.
Use this when you need to use an as_boolean
containing true
, rather than allocating a new as_boolean
.