Prev | Next | cppad_assert |
CPPAD_ASSERT_KNOWN(exp, msg)
CPPAD_ASSERT_UNKNOWN(exp)
CPPAD
and that call the CppAD error handler
.
CPPAD_ASSERT_KNOWN
macro is used to check for an error
with a known cause.
For example, many CppAD routines uses these macros
to make sure their arguments conform to their specifications.
CPPAD_ASSERT_UNKNOWN
macro is used to check that the
CppAD internal data structures conform as expected.
If this is not the case, CppAD does not know why the error has
occurred; for example, the user may have written past the end
of an allocated array.
exp
is a C++ source code expression
that results in a bool
value that should be true.
If it is false, an error has occurred.
This expression may be execute any number of times
(including zero times) so it must have not side effects.
msg
has prototype
const char *msg
and contains a '\0'
terminated character string.
This string is a description of the error
corresponding to
exp
being false.