Utility classes, functions, and macros.
More...
#include <math.h>
#include <stddef.h>
#include <inttypes.h>
#include <stdarg.h>
Go to the source code of this file.
|
#define | WTH_EXPORT |
|
#define | WTH_DEPRECATED |
|
#define | WTH_PRINTF(x, y) |
|
#define | wth_array_for_each(pos, array) |
|
|
typedef int32_t | wth_fixed_t |
|
|
void | wth_array_init (struct wth_array *array) |
|
void | wth_array_release (struct wth_array *array) |
|
void * | wth_array_add (struct wth_array *array, size_t size) |
|
int | wth_array_copy (struct wth_array *array, struct wth_array *source) |
|
static double | wth_fixed_to_double (wth_fixed_t f) |
|
static wth_fixed_t | wth_fixed_from_double (double d) |
|
static int | wth_fixed_to_int (wth_fixed_t f) |
|
static wth_fixed_t | wth_fixed_from_int (int i) |
|
Utility classes, functions, and macros.
◆ wth_array_for_each
#define wth_array_for_each |
( |
|
pos, |
|
|
|
array |
|
) |
| |
Value:for (pos = (array)->data; \
(const char *) pos < ((const char *) (array)->data + (array)->size); \
(pos)++)
◆ wth_iterator_result
This enum represents the return value of an iterator function.
Enumerator |
---|
WTH_ITERATOR_STOP | Stop the iteration.
|
WTH_ITERATOR_CONTINUE | Continue the iteration.
|