![]() |
Go to the source code of this file.
Data Structures | |
struct | as_double |
Functions | |
static void | as_double_destroy (as_double *value) |
static as_double * | as_double_fromval (const as_val *value) |
static double | as_double_get (const as_double *value) |
static double | as_double_getorelse (const as_double *value, double fallback) |
AS_EXTERN as_double * | as_double_init (as_double *value_ptr, double value) |
AS_EXTERN as_double * | as_double_new (double value) |
static as_val * | as_double_toval (const as_double *value) |
AS_EXTERN void | as_double_val_destroy (as_val *value) |
AS_EXTERN uint32_t | as_double_val_hashcode (const as_val *value) |
AS_EXTERN char * | as_double_val_tostring (const as_val *value) |
|
inlinestatic |
Destroy the as_double
and release resources.
value | The double to destroy. |
Definition at line 173 of file as_double.h.
Convert from an as_val.
Definition at line 225 of file as_double.h.
|
inlinestatic |
Get the double value.
Definition at line 199 of file as_double.h.
|
inlinestatic |
Get the double value. If double is NULL, then return the fallback value.
Definition at line 188 of file as_double.h.
Initialize a stack allocated as_double
with the given double value.
as_double_destroy() is not required for a stack allocated as_double.
value_ptr | The as_double to initialize. |
value | The double value. |
Creates a new heap allocated as_double.
When the as_double
is no longer needed, you should release it an it's resources:
value | The double value. |
Convert to an as_val.
Definition at line 214 of file as_double.h.
Internal helper function for destroying an as_val.
Internal helper function for getting the hashcode of an as_val.