Go to the documentation of this file.00001
00010
00011
00012
00013
00014 #ifndef ECL_ERRORS_ERROR_FUNCTIONS_HPP_
00015 #define ECL_ERRORS_ERROR_FUNCTIONS_HPP_
00016
00017
00018
00019
00020
00021 #include <cstdlib>
00022 #include <ecl/config/macros.hpp>
00023 #include "handlers.hpp"
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #if defined(NDEBUG) || defined(ECL_NDEBUG)
00034 #define ecl_run_time_assert(req,loc,msg) ((void)0)
00035 #else
00036
00051 ECL_PUBLIC void ecl_run_time_assert ( bool requirement, const char* location, const char* msg);
00067 ECL_PUBLIC void ecl_run_time_assert ( bool requirement, const char* location, ecl::ErrorFlag type);
00068 #endif
00069
00070
00071
00072
00073
00084 ECL_PUBLIC void ecl_run_time_abort ( const char* location, const char* msg = "Abort procedure called.");
00095 ECL_PUBLIC void ecl_run_time_abort ( const char* location, ecl::ErrorFlag type );
00096
00097 #endif