Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals  

defines.h File Reference

some common #defines. More...

#include "common.h"

Include dependency graph for defines.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define eprintf(__args__...)   fprintf(stderr, __args__)
 print formated arguments on stderr. More...

#define NEW(__x__)   (__x__ = (typeof(__x__)) malloc(sizeof(*(__x__))))
 auto-allocates enough memory for the __x__ dynamic variable. More...

#define FREE   free
 frees the memory allocated with NEW. More...

#define DELETE   free
#define COMMA   ,
 this is an alias for the comma ASCII symbol ',', which cannot be used in macros' actual arguments because it has other meaning.

#define OPEN   (
 this is an alias for the opening paranthesis ASCII symbol '(', which cannot be used in macros' actual arguments because it has other meaning.

#define CLOSE   )
 this is an alias for the closing paranthesis ASCII symbol ')', which cannot be used in macros' actual arguments because it has other meaning.

#define dont_break
 this is the opposite of the C break statement; it means not to break out of a for, switch etc...

#define OR   : case
 this should be used to enumerate several possible cases within the same case alternative.


Detailed Description

some common #defines.

Author:
Sebastian Glita

Definition in file defines.h.


Generated on Thu Jan 9 19:02:42 2003 for plint by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002