Main Page   Modules   Compound List   File List   Compound Members   File Members  

misc_defs.h File Reference

#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include <assert.h>
#include <gandalf/config.h>

Go to the source code of this file.

Defines

#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 GAN_ONE_THIRD   0.3333333333333333333333
#define GAN_ONE_THIRD_F   0.3333333333333333333333F
#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
}
 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.

void * memcpy (void *dest, const void *src, size_t n)

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


Detailed Description

Module: Miscellaneous definitions

Part of: Gandalf Library

Revision: Last edited: Author:

Copyright: (c) 2000 Imagineer Software Limited


Variable Documentation

const size_t gan_type_sizes[]  
 

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


Generated on Mon Oct 13 16:14:45 2003 by doxygen1.3-rc1