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. |
Created by Justin Spahr-Summers on 2007-11-30. Copyright 2007. All rights reserved.
#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
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
NDEBUG
is defined.