[Coin-discuss] CoinAssert
Matthew Galati
magh at lehigh.edu
Tue Apr 3 09:53:30 EDT 2007
In CoinError.hpp
#ifndef COIN_ASSERT
# define CoinAssertDebug(expression) assert(expression)
# define CoinAssertDebugHint(expression,hint) assert(expression)
# define CoinAssert(expression) assert(expression)
# define CoinAssertHint(expression,hint) assert(expression)
I assume the intention of CoinAssert vs CoinAssertDebug is for the
latter to go away in optimized mode (due to NDEBUG inclusion) and the
former to stay in any case.
If so, this is not really doing what you want. CoinAssert redefined to
standard c assert will go away in optimized mode.
Matt
More information about the Coin-discuss
mailing list