Compile-time assertions

nxs_assert.h More...

Defines

#define nxs_assert(_cond)
 Asserts that the value of _cond (which must be able to be evaluated at compile-time) does not compare equal to zero.
#define nxs_assert_name(_name, _cond)
 Asserts that the value of _cond (which must be able to be evaluated at compile-time) does not compare equal to zero, using _name to uniquely identify the assertion.

Detailed Description

nxs_assert.h

Created by Justin Spahr-Summers on 2007-11-30. Copyright 2007. All rights reserved.


Define Documentation

#define nxs_assert ( _cond   ) 

Asserts that the value of _cond (which must be able to be evaluated at compile-time) does not compare equal to zero.

If _cond is zero, a compiler error will be generated similar to: size of array 'nxs_assertion_failed' is negative

Note:
This macro is not affected by whether or not NDEBUG is defined.

#define nxs_assert_name ( _name,
_cond   ) 

Asserts that the value of _cond (which must be able to be evaluated at compile-time) does not compare equal to zero, using _name to uniquely identify the assertion.

If _cond is zero, a compiler error will be generated similar to: size of array '(_name)_assertion_failed' is negative

Note:
This macro is not affected by whether or not NDEBUG is defined.


Generated on Thu Dec 20 13:42:46 2007 for NXS Toolkit by  doxygen 1.5.4