Macros | |
#define | it_assert(t, s) |
Abort if t is not true. More... | |
#define | it_assert_debug(t, s) it_assert(t,s) |
Abort if t is not true and NDEBUG is not defined. More... | |
#define | it_assert0(t, s) it_assert_debug(t,s) |
Deprecated macro. Please use it_assert_debug() instead. More... | |
#define | it_assert1(t, s) it_assert_debug(t,s) |
Deprecated macro. Please use it_assert_debug() instead. More... | |
#define | it_error_if(t, s) |
Abort if t is true. More... | |
#define | it_error(s) |
Abort unconditionally. More... | |
#define | it_info(s) |
Print information message. More... | |
#define | it_info_no_endl(s) |
Print information message withot std::endl at the end. More... | |
#define | it_info_debug(s) it_info(s) |
Print information message if NDEBUG is not defined. More... | |
#define | it_info_no_endl_debug(s) it_info_no_endl(s) |
Print information message withot std::endl at the end if NDEBUG is not defined. More... | |
#define | it_warning(s) |
Display a warning message. More... | |
Enumerations | |
enum | itpp::error_msg_style { Full , Minimum } |
Style of assert, error and warning messages. More... | |
Functions | |
void | itpp::it_assert_f (std::string ass, std::string msg, std::string file, int line) |
Helper function for the it_assert and it_assert_debug macros. More... | |
void | itpp::it_error_f (std::string msg, std::string file, int line) |
Helper function for the it_error and it_error_if macros. More... | |
void | itpp::it_info_f (std::string msg) |
Helper function for the it_info and it_info_debug macros. More... | |
void | itpp::it_warning_f (std::string msg, std::string file, int line) |
Helper function for the it_warning macro. More... | |
ITPP_EXPORT void | itpp::it_enable_exceptions (bool on) |
Enable/disable using exceptions for error handling. | |
void | itpp::it_enable_warnings () |
Enable warnings. More... | |
void | itpp::it_disable_warnings () |
Disable warnings. More... | |
void | itpp::it_redirect_warnings (std::ostream *warn_stream) |
Redirect warnings to the ostream warn_stream. More... | |
void | itpp::it_error_msg_style (error_msg_style style) |
Set preferred style of assert, error and warning messages. More... | |
For the following macros, the argument s
is a string that is displayed.
it_assert()
, it_error()
, it_error_if()
, it_info()
, it_info_no_endl()
and it_warning()
are always active, whereas it_assert_debug()
, it_info_debug()
and it_info_no_endl_debug()
depends on the NDEBUG
compile time definition. If NDEBUG
is defined, then none of these macros is executed.
it_assert0()
and it_assert1()
macros are still defined for backward compatibility, but it_assert_debug()
should be used instead of them. #define it_assert | ( | t, | |
s | |||
) |
Abort if t
is not true.
Definition at line 94 of file itassert.h.
#define it_assert_debug | ( | t, | |
s | |||
) | it_assert(t,s) |
Abort if t
is not true and NDEBUG is not defined.
Definition at line 107 of file itassert.h.
#define it_assert0 | ( | t, | |
s | |||
) | it_assert_debug(t,s) |
Deprecated macro. Please use it_assert_debug()
instead.
Definition at line 111 of file itassert.h.
#define it_assert1 | ( | t, | |
s | |||
) | it_assert_debug(t,s) |
Deprecated macro. Please use it_assert_debug()
instead.
Definition at line 113 of file itassert.h.
#define it_error_if | ( | t, | |
s | |||
) |
Abort if t
is true.
Definition at line 117 of file itassert.h.
#define it_error | ( | s | ) |
Abort unconditionally.
Definition at line 126 of file itassert.h.
#define it_info | ( | s | ) |
Print information message.
Definition at line 136 of file itassert.h.
#define it_info_no_endl | ( | s | ) |
Print information message withot std::endl
at the end.
Definition at line 145 of file itassert.h.
#define it_info_debug | ( | s | ) | it_info(s) |
Print information message if NDEBUG is not defined.
Definition at line 163 of file itassert.h.
#define it_info_no_endl_debug | ( | s | ) | it_info_no_endl(s) |
Print information message withot std::endl
at the end if NDEBUG is not defined.
Definition at line 168 of file itassert.h.
#define it_warning | ( | s | ) |
Display a warning message.
Definition at line 173 of file itassert.h.
Style of assert, error and warning messages.
Definition at line 87 of file itassert.h.
ITPP_EXPORT void itpp::it_assert_f | ( | std::string | ass, |
std::string | msg, | ||
std::string | file, | ||
int | line | ||
) |
Helper function for the it_assert
and it_assert_debug
macros.
Definition at line 50 of file itassert.cpp.
ITPP_EXPORT void itpp::it_error_f | ( | std::string | msg, |
std::string | file, | ||
int | line | ||
) |
Helper function for the it_error
and it_error_if
macros.
Definition at line 68 of file itassert.cpp.
ITPP_EXPORT void itpp::it_info_f | ( | std::string | msg | ) |
Helper function for the it_info
and it_info_debug
macros.
Definition at line 86 of file itassert.cpp.
ITPP_EXPORT void itpp::it_warning_f | ( | std::string | msg, |
std::string | file, | ||
int | line | ||
) |
Helper function for the it_warning
macro.
Definition at line 91 of file itassert.cpp.
ITPP_EXPORT void itpp::it_enable_warnings | ( | ) |
Enable warnings.
Definition at line 104 of file itassert.cpp.
ITPP_EXPORT void itpp::it_disable_warnings | ( | ) |
Disable warnings.
Definition at line 109 of file itassert.cpp.
ITPP_EXPORT void itpp::it_redirect_warnings | ( | std::ostream * | warn_stream | ) |
Redirect warnings to the ostream warn_stream.
Definition at line 114 of file itassert.cpp.
ITPP_EXPORT void itpp::it_error_msg_style | ( | error_msg_style | style | ) |
Set preferred style of assert, error and warning messages.
Definition at line 119 of file itassert.cpp.
Generated on Tue Jan 24 2023 00:00:00 for IT++ by Doxygen 1.9.5