Provides errors handling. More...

Enumerations

enum  error_types { NO_ERROR = -1, LISP_ERROR = 1, MEMORY_ERROR = 2, MODE_ERROR = 3 }
 

Functions

void pi_error (int CODE, char *message)
 
void pi_lisp_error (char *message)
 
void pi_error_few_args ()
 
void pi_error_many_args ()
 
void pi_error_stack ()
 
void pi_error_stack_overflow ()
 
void pi_error_stack_undeflow ()
 
int get_last_error ()
 
bool had_error ()
 
void reset_error ()
 

Detailed Description

Provides errors handling.

Enumeration Type Documentation

Enumerator
NO_ERROR 

no error occurrred

LISP_ERROR 

LISP syntax error.

MEMORY_ERROR 

memory error

MODE_ERROR 

error passing mode to some kind of functions

Function Documentation

int get_last_error ( )
bool had_error ( )
void pi_error ( int  CODE,
char *  message 
)
void pi_error_few_args ( )
void pi_error_many_args ( )
void pi_error_stack ( )
void pi_error_stack_overflow ( )
void pi_error_stack_undeflow ( )
void pi_lisp_error ( char *  message)
void reset_error ( )