polylib 5.22.8
arithmetic_errors.h File Reference
#include <setjmp.h>

Go to the source code of this file.

Macros

#define __CURRENT_FUNCTION_NAME__   "<unknown>"
 
#define EXCEPTION   extern unsigned int
 
#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) (const char *, const char *, int)
 

Variables

unsigned int the_last_just_thrown_exception
 

Macro Definition Documentation

◆ __CURRENT_FUNCTION_NAME__

#define __CURRENT_FUNCTION_NAME__   "<unknown>"

Definition at line 96 of file arithmetic_errors.h.

◆ CATCH

#define CATCH (   what)
Value:
__FILE__, __LINE__)))
#define __CURRENT_FUNCTION_NAME__
jmp_buf * push_exception_on_stack(int what, const char *function, const char *file, int line)
Definition: errors.c:270

Definition at line 105 of file arithmetic_errors.h.

◆ EXCEPTION

#define EXCEPTION   extern unsigned int

Definition at line 100 of file arithmetic_errors.h.

◆ RETHROW

#define RETHROW ( )    THROW(the_last_just_thrown_exception)

Definition at line 116 of file arithmetic_errors.h.

◆ THROW

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

Definition at line 102 of file arithmetic_errors.h.

◆ TRY

#define TRY   else

Definition at line 113 of file arithmetic_errors.h.

◆ UNCATCH

#define UNCATCH (   what)
Value:
__LINE__))
void pop_exception_from_stack(int what, const char *function, const char *file, int line)
Definition: errors.c:308

Definition at line 109 of file arithmetic_errors.h.

Typedef Documentation

◆ exception_callback_t

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

Definition at line 81 of file arithmetic_errors.h.

Variable Documentation

◆ the_last_just_thrown_exception

unsigned int the_last_just_thrown_exception
extern

Definition at line 141 of file errors.c.