Defines | |
| #define | it_assert0(t, s) (void)((t) || (itpp::it_assert_f(#t,s,__FILE__,__LINE__),0)) |
| #define | it_assert1(t, s) (void)((t) || (itpp::it_assert_f(#t,s,__FILE__,__LINE__),0)) |
| #define | it_assert(t, s) (void)((t) || (itpp::it_assert_f(#t,s,__FILE__,__LINE__),0)) |
Abort if t is NOT true and output s. | |
| #define | it_error_if(t, s) (void)((!(t)) || (itpp::it_error_f(s,__FILE__,__LINE__),0)) |
Abort if t is true and output s. | |
| #define | it_error(s) itpp::it_error_f(s,__FILE__,__LINE__) |
Abort and output s. | |
| #define | it_warning(s) itpp::it_warning_f(s,__FILE__,__LINE__) |
Output the warning s. | |
Functions | |
| void | itpp::it_assert_f (std::string ass, std::string msg, std::string file, int line) |
Helper function for the it_assert functions. | |
| void | itpp::it_error_f (std::string msg, std::string file, int line) |
Helper function for the it_error functions. | |
| void | itpp::it_warning_f (std::string msg, std::string file, int line) |
Helper function for the it_warning functions. | |
| void | itpp::it_enable_exceptions (bool on) |
| Enable/disable using exceptions for error handling. | |
| void | itpp::it_enable_warnings () |
| Enable warnings. | |
| void | itpp::it_disable_warnings () |
| Disable warnings. | |
| void | itpp::it_redirect_warnings (std::ostream *warn_stream) |
| Redirect warnings to the ostream warn_stream. | |
s is a string that is displayed.
it_assert(t,s); // Abort if \c t is not true. it_assert0(t,s); // Abort if \c t is not true and ASSERT_LEVEL = 2 it_assert1(t,s); // Abort if \c t is not true and ASSERT_LEVEL = 2 or 1 it_error_if(t,s); // Abort if \c t is true. it_error(s); // Abort. it_warning(s); // Show a warning.
it_assert(), it_error() and it_warning() is always active while it_assert0() and it_assert1() depends on the ASSERT_LEVEL variable. If ASSERT_LEVEL == 0 then none of these are executed while if it is 1 only it_assert1() is executed.
|
|
|
|
|
|
|
||||||||||||||||||||
|
Helper function for the
Definition at line 61 of file itassert.cpp. |
|
||||||||||||||||
|
Helper function for the
Definition at line 84 of file itassert.cpp. |
|
||||||||||||||||
|
Helper function for the
Definition at line 104 of file itassert.cpp. |
|
|
Enable/disable using exceptions for error handling.
Definition at line 111 of file itassert.cpp. |
|
|
Enable warnings.
Definition at line 116 of file itassert.cpp. |
|
|
Disable warnings.
Definition at line 121 of file itassert.cpp. |
|
|
Redirect warnings to the ostream warn_stream.
Definition at line 126 of file itassert.cpp. |
Generated on Fri Jan 11 08:51:40 2008 for IT++ by Doxygen 1.3.9.1