PIPS
arithmetic_errors.h File Reference
#include <setjmp.h>
+ Include dependency graph for arithmetic_errors.h:
+ This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ CATCH

#define CATCH (   what)
Value:
__FILE__, __LINE__)))
#define push_exception_on_stack
#define CURRENT_FUNCTION
package arithmetique

Definition at line 72 of file arithmetic_errors.h.

◆ EXCEPTION

#define EXCEPTION   extern unsigned int

'const' out because of cproto 4.6.

FC 13/06/2003

Definition at line 67 of file arithmetic_errors.h.

◆ pop_exception_from_stack

#define pop_exception_from_stack   linear_pop_exception_from_stack

Definition at line 62 of file arithmetic_errors.h.

◆ push_exception_on_stack

#define push_exception_on_stack   linear_push_exception_on_stack

Definition at line 61 of file arithmetic_errors.h.

◆ RETHROW

#define RETHROW ( )    THROW(the_last_just_thrown_exception)

Definition at line 82 of file arithmetic_errors.h.

◆ THROW

#define THROW (   what)     (throw_exception(what, CURRENT_FUNCTION, __FILE__, __LINE__))

Definition at line 69 of file arithmetic_errors.h.

◆ throw_exception

#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.

◆ TRY

#define TRY   else

Definition at line 80 of file arithmetic_errors.h.

◆ UNCATCH

#define UNCATCH (   what)
Value:
__FILE__, __LINE__))
#define pop_exception_from_stack

Definition at line 76 of file arithmetic_errors.h.

Typedef Documentation

◆ exception_callback_t

typedef void(* exception_callback_t) (char const *, char const *, int const)

Definition at line 64 of file arithmetic_errors.h.

◆ timeout_callback_f

typedef void(* timeout_callback_f) (int, const char *, const char *, int)

callback for timeout expecting: delay, function, file, lineno

Definition at line 42 of file arithmetic_errors.h.

Enumeration Type Documentation

◆ 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.

47  {
48  overflow_error = 1,
52  timeout_error = 16,
53  /* catch all */
linear_exception_t
Global constants to designate exceptions.
@ overflow_error
@ simplex_arithmetic_error
@ user_exception_error
@ timeout_error
@ any_exception_error
catch all
@ parser_exception_error