Zigbee Protocol Controller 1.6.0
assert.h File Reference

Go to the source code of this file.

Macros

#define assert(e)   ((e) ? (void)0 : _xassert(__FILE__, __LINE__))
 
#define CTASSERT(x)   _CTASSERT(x, __LINE__)
 
#define _CTASSERT(x, y)   __CTASSERT(x, y)
 
#define __CTASSERT(x, y)   typedef char __assert##y[(x) ? 1 : -1]
 

Functions

void _xassert (const char *, int)
 

Macro Definition Documentation

◆ __CTASSERT

#define __CTASSERT (   x,
 
)    typedef char __assert##y[(x) ? 1 : -1]

◆ _CTASSERT

#define _CTASSERT (   x,
 
)    __CTASSERT(x, y)

◆ assert

#define assert (   e)    ((e) ? (void)0 : _xassert(__FILE__, __LINE__))

◆ CTASSERT

#define CTASSERT (   x)    _CTASSERT(x, __LINE__)

Function Documentation

◆ _xassert()

void _xassert ( const char *  file,
int  lineno 
)