pierror.h
Go to the documentation of this file.
1 
9 #ifndef PERROR_H
10 #define PERROR_H
11 #include "pilisp.h"
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <string.h>
15 
17  NO_ERROR = -1,
18  LISP_ERROR = 1,
21 };
22 
23 // ==================== Errors Throwing ====================
24 void pi_error(int CODE, char *message);
25 void pi_lisp_error(char *message); // throws LISP_ERROR
26 void pi_error_few_args(); // throws "too few args"
27 void pi_error_many_args(); // throws "too many args"
28 void pi_error_stack();
31 
32 // ==================== Last error informations ====================
33 int get_last_error();
34 bool had_error();
35 void reset_error();
36 
37 #endif // !PERROR_H
void pi_error(int CODE, char *message)
Definition: pierror.c:9
no error occurrred
Definition: pierror.h:17
void pi_error_few_args()
Definition: pierror.c:20
memory error
Definition: pierror.h:19
error_types
Definition: pierror.h:16
void pi_error_stack_undeflow()
Definition: pierror.c:34
void reset_error()
Definition: pierror.c:42
void pi_lisp_error(char *message)
Definition: pierror.c:18
void pi_error_stack_overflow()
Definition: pierror.c:29
int get_last_error()
Definition: pierror.c:40
LISP syntax error.
Definition: pierror.h:18
void pi_error_many_args()
Definition: pierror.c:22
void pi_error_stack()
Definition: pierror.c:24
error passing mode to some kind of functions
Definition: pierror.h:20
bool had_error()
Definition: pierror.c:44