Go to the source code of this file.
◆ as_integer_destroy()
static void as_integer_destroy |
( |
as_integer * | integer | ) |
|
|
inlinestatic |
Destroy the as_integer
and release resources.
static void as_integer_destroy(as_integer *integer)
- Parameters
-
integer | The integer to destroy. |
Definition at line 172 of file as_integer.h.
◆ as_integer_fromval()
◆ as_integer_get()
static int64_t as_integer_get |
( |
const as_integer * | integer | ) |
|
|
inlinestatic |
◆ as_integer_getorelse()
static int64_t as_integer_getorelse |
( |
const as_integer * | integer, |
|
|
int64_t | fallback ) |
|
inlinestatic |
Get the int64_t value. If integer is NULL, then return the fallback value.
Definition at line 185 of file as_integer.h.
◆ as_integer_init()
Initialize a stack allocated as_integer
with the given integer value.
AS_EXTERN as_integer * as_integer_init(as_integer *integer, int64_t value)
as_integer_destroy() is not required for a stack allocated as_integer.
- Parameters
-
integer | The as_integer to initialize. |
value | The integer value. |
- Returns
- On success, the initialized value. Otherwise NULL.
◆ as_integer_new()
Creates a new heap allocated as_integer.
AS_EXTERN as_integer * as_integer_new(int64_t value)
When the as_integer
is no longer needed, you should release it an it's resources:
- Parameters
-
- Returns
- On success, the initialized value. Otherwise NULL.
◆ as_integer_toint()
static int64_t as_integer_toint |
( |
const as_integer * | integer | ) |
|
|
inlinestatic |
◆ as_integer_toval()
◆ as_integer_val_destroy()
Internal helper function for destroying an as_val.
◆ as_integer_val_hashcode()
Internal helper function for getting the hashcode of an as_val.
◆ as_integer_val_tostring()
Internal helper function for getting the string representation of an as_val.