Main Page   Modules   Compound List   File List   Compound Members   File Members  

Support macros.

Simple support macros. More...

Defines

#define NUMELEMS(_a)   (sizeof(_a)/sizeof(_a[0]))
 Macro that returns the number of elemens in an array.

#define UNUSED(_a)   if (0 && (_a));
 Macro to mark a variable as unused to stop the compiler from complaining.

#define VALIDATE(_a, _cl)
 First level validation macro that checks that an instance argument is not null and is of the right class. More...

#define CHECKINSTANCEISCLASS(_a)

Detailed Description

Simple support macros.


Define Documentation

#define CHECKINSTANCEISCLASS _a   
 

Value:

ASSERT(_a, "Null object pointer"); \
        ASSERT((_a)->pClass->uMagic == CLASSMAGIC, "Parameter is not a class instance");

#define VALIDATE _a,
_cl   
 

Value:

ASSERT(_a, "Null object pointer"); \
        ASSERT((_a)->header.pClass == &(_cl), "Wrong class of object passed in")
First level validation macro that checks that an instance argument is not null and is of the right class.


Generated on Sat May 11 15:15:42 2002 for JauneRuntimeclib by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002