]> gitweb.factorcode.org Git - factor.git/blob - native/error.h
Factor jEdit plugin!
[factor.git] / native / error.h
1 #define ERROR_HANDLE_EXPIRED (0<<3)
2 #define ERROR_UNDEFINED_WORD (1<<3)
3 #define ERROR_TYPE (2<<3)
4 #define ERROR_RANGE (3<<3)
5 #define ERROR_UNDERFLOW (4<<3)
6 #define ERROR_BAD_PRIMITIVE (5<<3)
7 #define ERROR_HANDLE_INCOMPAT (6<<3)
8 #define ERROR_IO (7<<3)
9 #define ERROR_OVERFLOW (8<<3)
10 #define ERROR_INCOMPARABLE (9<<3)
11
12 void fatal_error(char* msg, CELL tagged);
13 void critical_error(char* msg, CELL tagged);
14 void fix_stacks(void);
15 void throw_error(CELL object);
16 void general_error(CELL error, CELL tagged);
17 void type_error(CELL type, CELL tagged);
18 void range_error(CELL tagged, CELL index, CELL max);
19 void io_error(const char* func);