bdmerror.h File Reference
BDM's exception-throwing macros. More...
#include <sstream>
#include <string>
Go to the source code of this file.
| Namespaces | |
| namespace | bdm | 
| Defines | |
| #define | bdm_assert(t, s) | 
| Throw std::runtime_exception if tis not true. | |
| #define | bdm_assert_debug(t, s) bdm_assert(t, s) | 
| Throw std::runtime_exception if tis not true and NDEBUG is not defined. | |
| #define | DEBUG(command) command | 
| DO argument if in DEBUG model. | |
| #define | bdm_error(s) | 
| Unconditionally throw std::runtime_error. | |
| #define | bdm_warning(s) | 
| Display a warning message. | |
| #define | NOT_IMPLEMENTED(RESULT) { bdm_error( "Not implemented" ); return RESULT; } | 
| #define | NOT_IMPLEMENTED_VOID { bdm_error( "Not implemented" ); } | 
| Functions | |
| void | bdm::bdm_assert_f (const std::string &ass, const std::string &msg, const std::string &file, int line) | 
| Helper function for the bdm_assertandbdm_assert_debugmacros. | |
| void | bdm::bdm_error_f (const std::string &msg, const std::string &file, int line) | 
| Helper function for the bdm_errormacro. | |
| void | bdm::bdm_warning_f (const std::string &msg, const std::string &file, int line) | 
| Helper function for the bdm_warningmacro. | |
Detailed Description
BDM's exception-throwing macros.
- Author:
- Vaclav Barta.
Using IT++ for numerical operations -----------------------------------
Define Documentation
| #define bdm_assert | ( | t, | |||
| s | ) | 
Value:
if (!(t)) { \ std::ostringstream bdm_out; \ bdm_out << s; \ bdm::bdm_assert_f(#t, bdm_out.str(), __FILE__, __LINE__); \ } else ((void) 0)
t is not true.
| #define bdm_error | ( | s | ) | 
Value:
if (true) { \ std::ostringstream bdm_out; \ bdm_out << s; \ bdm::bdm_error_f(bdm_out.str(), __FILE__, __LINE__); \ } else ((void) 0)
| #define bdm_warning | ( | s | ) | 
Value:
if (true) { \ std::ostringstream bdm_out; \ bdm_out << s; \ bdm::bdm_warning_f(bdm_out.str(), __FILE__, __LINE__); \ } else ((void) 0)
Generated on 2 Dec 2013 for mixpp by
 1.4.7
 1.4.7 
      
