Program Listing for File run_time_functions.hpp

Return to documentation for file (include/ecl/errors/run_time_functions.hpp)

/*****************************************************************************
** Ifdefs
*****************************************************************************/

#ifndef ECL_ERRORS_ERROR_FUNCTIONS_HPP_
#define ECL_ERRORS_ERROR_FUNCTIONS_HPP_

/*****************************************************************************
** Includes
*****************************************************************************/

#include <cstdlib>
#include <ecl/config/macros.hpp>
#include "handlers.hpp"

/*****************************************************************************
** Namespaces
*****************************************************************************/

/*****************************************************************************
** Functions [run_time_assert]
*****************************************************************************/

#if defined(NDEBUG) || defined(ECL_NDEBUG)
    #define ecl_run_time_assert(req,loc,msg) ((void)0)
#else
    ecl_errors_PUBLIC void ecl_run_time_assert ( bool requirement, const char* location, const char* msg);
    ecl_errors_PUBLIC void ecl_run_time_assert ( bool requirement, const char* location, ecl::ErrorFlag type);
#endif

/*****************************************************************************
** Functions [abort]
*****************************************************************************/

ecl_errors_PUBLIC void ecl_run_time_abort ( const char* location, const char* msg = "Abort procedure called.");
ecl_errors_PUBLIC void ecl_run_time_abort ( const char* location,  ecl::ErrorFlag type );

#endif /* ECL_ERRORS_ERROR_FUNCTIONS_HPP_*/