#include <setjmp.h>

Go to the source code of this file.
Defines | |
| #define | __CURRENT_FUNCTION_NAME__ "<unknown>" |
| use gnu cpp '__FUNCTION__' extension if possible. | |
| #define | EXCEPTION extern unsigned int |
| 'const' out because of cproto 4.6. | |
| #define | THROW(what) (throw_exception(what, __CURRENT_FUNCTION_NAME__, __FILE__, __LINE__)) |
| #define | CATCH(what) |
| #define | UNCATCH(what) |
| #define | TRY else |
| #define | RETHROW() THROW(the_last_just_thrown_exception) |
Typedefs | |
| typedef void(* | exception_callback_t )(char const *, char const *, int const) |
| managing arithmetic errors. | |
| #define __CURRENT_FUNCTION_NAME__ "<unknown>" |
use gnu cpp '__FUNCTION__' extension if possible.
Definition at line 54 of file arithmetic_errors.h.
| #define CATCH | ( | what | ) |
if (setjmp(*push_exception_on_stack(what, __CURRENT_FUNCTION_NAME__, \ __FILE__, __LINE__)))
Definition at line 63 of file arithmetic_errors.h.
Referenced by bound_redund_with_sc_p(), build_integer_sc_nredund(), catch_user_error(), csplit(), dependence_cone_positive(), internal_sc_feasibility(), loop_executed_approximation(), loop_executed_once_p(), my_system_projection_along_variables(), pa_convex_hull_equals_union_p_ofl_ctrl(), pa_inclusion_p_ofl_ctrl(), parametric_transformer_empty_p(), pips_main(), region_exact_projection_along_parameters(), region_exact_projection_along_variable(), region_exact_projection_along_variables(), region_inf_difference(), region_intersection(), region_non_exact_projection_along_parameters(), region_non_exact_projection_along_variables(), region_sup_difference(), regions_must_convex_hull(), safe_concurrent_apply(), safe_do_something(), sc_convex_hull(), sc_enveloppe_chernikova_ofl_ctrl(), sc_faisabilite_optim(), sc_feasibility_ofl_ctrl(), sc_fourier_motzkin_feasibility_ofl_ctrl(), sc_fourier_motzkin_feasibility_ofl_ctrl_timeout_ctrl(), sc_fourier_motzkin_variable_elimination_ofl_ctrl(), sc_integer_projection_along_variable(), sc_janus_feasibility_ofl_ctrl_timeout_ctrl(), sc_minmax_of_pvector(), sc_minmax_of_variable2(), sc_minmax_of_variable_optim(), sc_projection(), sc_projection_along_variable_ofl_ctrl_timeout_ctrl(), sc_projection_on_variables(), sc_projection_optim_along_vecteur(), sc_projection_pure(), sc_simplexe_feasibility_ofl_ctrl(), sc_simplexe_feasibility_ofl_ctrl_timeout_ctrl(), sc_strong_normalize2(), sc_strong_normalize_and_check_feasibility(), sc_strong_normalize_and_check_feasibility2(), sc_to_sg_chernikova(), sg_to_sc_chernikova(), test_system(), TestDependence(), tpips_exec(), transformer_combine(), transformer_filter(), transformer_normalize(), and transformer_projection_with_redundancy_elimination_and_check().
| #define EXCEPTION extern unsigned int |
| #define RETHROW | ( | ) | THROW(the_last_just_thrown_exception) |
Definition at line 73 of file arithmetic_errors.h.
Referenced by CATCH(), sc_convex_hull(), sc_fourier_motzkin_feasibility_ofl_ctrl(), sc_projection_along_variable_ofl_ctrl_timeout_ctrl(), sc_simplexe_feasibility_ofl_ctrl(), sc_to_sg_chernikova(), and sg_to_sc_chernikova().
| #define THROW | ( | what | ) | (throw_exception(what, __CURRENT_FUNCTION_NAME__, __FILE__, __LINE__)) |
Definition at line 60 of file arithmetic_errors.h.
Referenced by abs_ofl_ctrl(), catch_alarm_SC_CONVEX_HULL(), default_user_error(), gpips_user_error_message(), sc_fourier_motzkin_feasibility_ofl_ctrl_timeout_ctrl(), sc_fourier_motzkin_variable_elimination_ofl_ctrl(), sc_janus_feasibility_ofl_ctrl_timeout_ctrl(), sc_simplexe_feasibility_ofl_ctrl_timeout_ctrl(), tpips_user_error(), and wpips_user_error_message().
| #define TRY else |
Definition at line 71 of file arithmetic_errors.h.
Referenced by bound_redund_with_sc_p(), build_integer_sc_nredund(), catch_user_error(), csplit(), dependence_cone_positive(), internal_sc_feasibility(), loop_executed_approximation(), loop_executed_once_p(), my_system_projection_along_variables(), pa_convex_hull_equals_union_p_ofl_ctrl(), pa_inclusion_p_ofl_ctrl(), parametric_transformer_empty_p(), pips_main(), region_exact_projection_along_parameters(), region_exact_projection_along_variable(), region_exact_projection_along_variables(), region_inf_difference(), region_intersection(), region_non_exact_projection_along_parameters(), region_non_exact_projection_along_variables(), region_sup_difference(), regions_must_convex_hull(), safe_concurrent_apply(), safe_do_something(), sc_convex_hull(), sc_faisabilite_optim(), sc_fourier_motzkin_feasibility_ofl_ctrl_timeout_ctrl(), sc_fourier_motzkin_variable_elimination_ofl_ctrl(), sc_integer_projection_along_variable(), sc_janus_feasibility_ofl_ctrl_timeout_ctrl(), sc_minmax_of_pvector(), sc_minmax_of_variable2(), sc_minmax_of_variable_optim(), sc_projection(), sc_projection_along_variable_ofl_ctrl_timeout_ctrl(), sc_projection_on_variables(), sc_projection_optim_along_vecteur(), sc_projection_pure(), sc_simplexe_feasibility_ofl_ctrl_timeout_ctrl(), sc_strong_normalize2(), sc_strong_normalize_and_check_feasibility(), sc_strong_normalize_and_check_feasibility2(), sc_to_sg_chernikova(), sg_to_sc_chernikova(), test_system(), TestDependence(), tpips_exec(), transformer_combine(), transformer_filter(), transformer_normalize(), and transformer_projection_with_redundancy_elimination_and_check().
| #define UNCATCH | ( | what | ) |
(pop_exception_from_stack(what, __CURRENT_FUNCTION_NAME__, \ __FILE__, __LINE__))
Definition at line 67 of file arithmetic_errors.h.
Referenced by bound_redund_with_sc_p(), build_integer_sc_nredund(), catch_user_error(), csplit(), dependence_cone_positive(), internal_sc_feasibility(), loop_executed_approximation(), loop_executed_once_p(), my_system_projection_along_variables(), pa_convex_hull_equals_union_p_ofl_ctrl(), pa_inclusion_p_ofl_ctrl(), parametric_transformer_empty_p(), pips_main(), region_exact_projection_along_parameters(), region_exact_projection_along_variable(), region_exact_projection_along_variables(), region_inf_difference(), region_intersection(), region_non_exact_projection_along_parameters(), region_non_exact_projection_along_variables(), region_sup_difference(), regions_must_convex_hull(), safe_concurrent_apply(), safe_do_something(), sc_convex_hull(), sc_enveloppe_chernikova_ofl_ctrl(), sc_faisabilite_optim(), sc_feasibility_ofl_ctrl(), sc_fourier_motzkin_feasibility_ofl_ctrl(), sc_fourier_motzkin_feasibility_ofl_ctrl_timeout_ctrl(), sc_fourier_motzkin_variable_elimination_ofl_ctrl(), sc_integer_projection_along_variable(), sc_janus_feasibility_ofl_ctrl_timeout_ctrl(), sc_minmax_of_pvector(), sc_minmax_of_variable2(), sc_minmax_of_variable_optim(), sc_projection(), sc_projection_along_variable_ofl_ctrl_timeout_ctrl(), sc_projection_on_variables(), sc_projection_optim_along_vecteur(), sc_projection_pure(), sc_simplexe_feasibility_ofl_ctrl(), sc_simplexe_feasibility_ofl_ctrl_timeout_ctrl(), sc_strong_normalize2(), sc_strong_normalize_and_check_feasibility(), sc_strong_normalize_and_check_feasibility2(), sc_to_sg_chernikova(), sg_to_sc_chernikova(), TestDependence(), tpips_exec(), transformer_combine(), transformer_filter(), transformer_normalize(), and transformer_projection_with_redundancy_elimination_and_check().
| typedef void(* exception_callback_t)(char const *, char const *, int const) |
managing arithmetic errors.
.. detecting and managing arithmetic errors on Values should be systematic. These macros gives a C++ look and feel to this management.
(c) CA et FC, Sept 1997
Definition at line 39 of file arithmetic_errors.h.
1.6.2-20100208