PIPS
|
#include <setjmp.h>
Go to the source code of this file.
Macros | |
#define | throw_exception linear_throw_exception |
HACK: there is a throw exception in linear and another version in polylib ensure that the one from linear is used... More... | |
#define | push_exception_on_stack linear_push_exception_on_stack |
#define | pop_exception_from_stack linear_pop_exception_from_stack |
#define | EXCEPTION extern unsigned int |
'const' out because of cproto 4.6. More... | |
#define | THROW(what) (throw_exception(what, CURRENT_FUNCTION, __FILE__, __LINE__)) |
#define | CATCH(what) |
#define | UNCATCH(what) |
#define | TRY else |
#define | RETHROW() THROW(the_last_just_thrown_exception) |
Typedefs | |
typedef void(* | timeout_callback_f) (int, const char *, const char *, int) |
callback for timeout expecting: delay, function, file, lineno More... | |
typedef void(* | exception_callback_t) (char const *, char const *, int const) |
Enumerations | |
enum | linear_exception_t { overflow_error = 1 , simplex_arithmetic_error = 2 , user_exception_error = 4 , parser_exception_error = 8 , timeout_error = 16 , any_exception_error = ~0 } |
Global constants to designate exceptions. More... | |
#define CATCH | ( | what | ) |
Definition at line 72 of file arithmetic_errors.h.
#define EXCEPTION extern unsigned int |
#define pop_exception_from_stack linear_pop_exception_from_stack |
Definition at line 62 of file arithmetic_errors.h.
#define push_exception_on_stack linear_push_exception_on_stack |
Definition at line 61 of file arithmetic_errors.h.
#define RETHROW | ( | ) | THROW(the_last_just_thrown_exception) |
Definition at line 82 of file arithmetic_errors.h.
#define THROW | ( | what | ) | (throw_exception(what, CURRENT_FUNCTION, __FILE__, __LINE__)) |
Definition at line 69 of file arithmetic_errors.h.
#define throw_exception linear_throw_exception |
HACK: there is a throw exception in linear and another version in polylib ensure that the one from linear is used...
Definition at line 60 of file arithmetic_errors.h.
#define TRY else |
Definition at line 80 of file arithmetic_errors.h.
#define UNCATCH | ( | what | ) |
Definition at line 76 of file arithmetic_errors.h.
typedef void(* exception_callback_t) (char const *, char const *, int const) |
Definition at line 64 of file arithmetic_errors.h.
callback for timeout expecting: delay, function, file, lineno
Definition at line 42 of file arithmetic_errors.h.
enum linear_exception_t |
Global constants to designate exceptions.
To be used in the type field.
Enumerator | |
---|---|
overflow_error | |
simplex_arithmetic_error | |
user_exception_error | |
parser_exception_error | |
timeout_error | |
any_exception_error | catch all |
Definition at line 47 of file arithmetic_errors.h.