run_time_functions.hpp
Go to the documentation of this file.
1 
10 /*****************************************************************************
11 ** Ifdefs
12 *****************************************************************************/
13 
14 #ifndef ECL_ERRORS_ERROR_FUNCTIONS_HPP_
15 #define ECL_ERRORS_ERROR_FUNCTIONS_HPP_
16 
17 /*****************************************************************************
18 ** Includes
19 *****************************************************************************/
20 
21 #include <cstdlib>
22 #include <ecl/config/macros.hpp>
23 #include "handlers.hpp"
24 
25 /*****************************************************************************
26 ** Namespaces
27 *****************************************************************************/
28 
29 /*****************************************************************************
30 ** Functions [run_time_assert]
31 *****************************************************************************/
32 
33 #if defined(NDEBUG) || defined(ECL_NDEBUG)
34  #define ecl_run_time_assert(req,loc,msg) ((void)0)
35 #else
36 
51  ecl_errors_PUBLIC void ecl_run_time_assert ( bool requirement, const char* location, const char* msg);
67  ecl_errors_PUBLIC void ecl_run_time_assert ( bool requirement, const char* location, ecl::ErrorFlag type);
68 #endif
69 
70 /*****************************************************************************
71 ** Functions [abort]
72 *****************************************************************************/
73 
84 ecl_errors_PUBLIC void ecl_run_time_abort ( const char* location, const char* msg = "Abort procedure called.");
95 ecl_errors_PUBLIC void ecl_run_time_abort ( const char* location, ecl::ErrorFlag type );
96 
97 #endif /* ECL_ERRORS_ERROR_FUNCTIONS_HPP_*/
ErrorFlag
Enumerated flags for error message handling.
Definition: flags.hpp:36
ecl_errors_PUBLIC void ecl_run_time_assert(bool requirement, const char *location, const char *msg)
Condition test, aborts with a programmable error string if it fails.
#define ecl_errors_PUBLIC
Definition: macros.hpp:37
ecl_errors_PUBLIC void ecl_run_time_abort(const char *location, const char *msg="Abort procedure called.")
Puts a customised error string to stderr before aborting the program.
Error handling without exceptions.


ecl_errors
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:16:11