misc_defs.h File Reference (original) (raw)

Defines

#define

GANDALF_API

#define

gan_eval(x) (x)

#define

gan_heap_report(f) ((void) 0)

#define

gan_heap_push() ((void) 0)

#define

gan_heap_pop() ((void) 0)

#define

M_SQRT1_2 0.70710678118654752440

#define

M_SQRT2 1.41421356237309504880

#define

M_SQRT3 1.73205080756887719317

#define

M_PI 3.14159265358979323846

#define

M_PI_2 1.57079632679489661923

#define

M_LN2 0.69314718055994530942

#define

GAN_ONE_THIRD 0.3333333333333333333333

#define

GAN_ONE_THIRD_F 0.3333333333333333333333F

#define

GAN_ONE_SIXTH 0.1666666666666666666666

#define

GAN_ONE_SIXTH_F 0.1666666666666666666666F

#define

powf(x, y) (float)pow((float)(x), (float)(y))

#define

fabsf(x) (float)fabs((float)(x))

#define

sqrtf(x) (float)sqrt((float)(x))

Enumerations

enum

Gan_Bool { GAN_FALSE = 0, GAN_TRUE = 1 }

Boolean data type. More...

enum

Gan_Type {
GAN_CHAR, GAN_UCHAR, GAN_SHORT, GAN_USHORT,
GAN_INT, GAN_UINT, GAN_LONG, GAN_ULONG,
GAN_FLOAT, GAN_DOUBLE, GAN_LONGDOUBLE, GAN_STRING,
GAN_BOOL, GAN_POINTER, GAN_UINT10, GAN_UINT12,
GAN_UNDEFINED_TYPE
}

labels for simple types used throughout Gandalf More...

Functions

void

gan_assert (Gan_Bool expr, const char *message)

Macro: Applies test and aborts program on false result with a message.

Variables

const size_t

gan_type_sizes []

array of sizeof()'s of each Gandalf type, one for each value in a Gan_Type

Gan_Bool

gan_debug