Waltham  0.1.0
Data Structures | Macros | Typedefs | Enumerations | Functions
waltham-util.h File Reference

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.

Data Structures

struct  wth_array
 

Macros

#define WTH_EXPORT
 
#define WTH_DEPRECATED
 
#define WTH_PRINTF(x, y)
 
#define wth_array_for_each(pos, array)
 

Typedefs

typedef int32_t wth_fixed_t
 

Enumerations

enum  wth_iterator_result { WTH_ITERATOR_STOP, WTH_ITERATOR_CONTINUE }
 This enum represents the return value of an iterator function. More...
 

Functions

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)
 

Detailed Description

Utility classes, functions, and macros.

Macro Definition Documentation

◆ 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)++)

Enumeration Type Documentation

◆ 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.