BOOST_PARSER_ASSERT
// In header: <boost/parser/config.hpp>
BOOST_PARSER_ASSERT(condition)
Asserts that the given condition is true. If BOOST_PARSER_NO_RUNTIME_ASSERTIONS
macro is defined by the user, BOOST_PARSER_ASSERT
expends to a compile-time static_assert()
. Otherwise, it expands to a run-time BOOST_ASSERT()
. Note that defining BOOST_DISABLE_ASSERTS
disables the use of C assert
, even when BOOST_ASSERT
is unavailble.