Fix preprocessor directives so that AssertFinite is always defined

It is a no-op when "NDEBUG" is defined.
This commit is contained in:
Ray Speth 2013-05-07 19:36:54 +00:00
parent e940a96a98
commit 3850e0329d

View file

@ -247,14 +247,13 @@ private:
# define AssertThrowMsg(expr, procedure, message) ((expr) ? (void) 0 : throw Cantera::CanteraError(procedure + std::string(": at failed assert: \"") + std::string(#expr) + std::string("\""), message))
#endif
#endif
//! Throw an exception if the specified exception is not a finite number.
#ifndef AssertFinite
# define AssertFinite(expr, procedure, message) AssertThrowMsg(expr < BigNumber && expr > -BigNumber, procedure, message)
#endif
#endif
}
#endif