Go to the documentation of this file.
55 #ifndef LHOGHO_ERRORS_H
56 #define LHOGHO_ERRORS_H
67 #define ERROR_INCOMPLETE_PAIR 1
68 #define ERROR_EMPTY_EXPRESSION 2
69 #define ERROR_CROWDED_EXPRESSION 3
70 #define ERROR_MISSING_LEFTS 4
71 #define ERROR_MISSING_RIGHTS 5
72 #define ERROR_EMPTY_TO_END 6
73 #define ERROR_MISSING_NAME 7
74 #define ERROR_DUPLICATE_INPUT 8
75 #define ERROR_UNKNOWN_OPTION 9
76 #define ERROR_CROWDED_SOURCES 10
77 #define ERROR_OS_ERROR 11
78 #define ERROR_INCOMPATIBLE_REDEFINITION 12
79 #define ERROR_NOT_A_NUMBER 13
80 #define ERROR_UNUSED_VALUE 14
81 #define ERROR_MISSING_VALUE 15
82 #define ERROR_DO_NOT_KNOW 16
83 #define ERROR_UNKNOWN_VAR 17
84 #define ERROR_BOOLEAN_EXPECTED 18
85 #define ERROR_NOT_AN_INTEGER 19
86 #define ERROR_NOT_A_LIST 20
87 #define ERROR_NOT_A_WORD 21
88 #define ERROR_INCOMPATIBLE_DATA 22
89 #define ERROR_TOO_BIG_NUMBER 23
90 #define ERROR_TOO_SMALL_NUMBER 24
91 #define ERROR_NOT_A_VAR 25
92 #define EXIT_BY_BYE 26 // BYE
93 #define EXIT_BY_THROW_TOPLEVEL 27 // THROW "TOPLEVEL
94 #define EXIT_BY_THROW_SYSTEM 28 // THROW "SYSTEM
95 #define EXIT_BY_THROW_ERROR 29 // THROW "ERROR
96 #define EXIT_BY_THROW_USER_ERROR 30 // THROW "ERROR <value>
97 #define EXIT_BY_THROW_TAG 31 // THROW <tag>
98 #define EXIT_BY_THROW_TAG_VALUE 32 // THROW <tag> <value>
99 #define ERROR_NOT_A_TAG 33
100 #define ERROR_NOT_A_USER_FUNCTION 34
101 #define ERROR_VAR_HAS_NO_VALUE 35
102 #define ERROR_NOT_A_FUNCTION 36
103 #define ERROR_NOT_A_LIST_CONST 37
104 #define ERROR_NOT_A_WORD_CONST 38
105 #define ERROR_MISSING_FOR_LIMITS 39
106 #define ERROR_NOT_A_TYPE_NAME 40
107 #define ERROR_BAD_PROTOTYPE 41
108 #define ERROR_NOT_A_MEM 42
109 #define ERROR_OUT_OF_MEM 43
110 #define ERROR_FILE_NOT_OPENED 44
111 #define ERROR_NOT_BLOCK_OR_DEF 45
115 #define FIRST_EXIT_CODE 26
116 #define LAST_EXIT_CODE 32
117 #define LAST_ERROR_CODE 45
127 #define ERRCODE(x) ((x)->unode.s[3])
128 #define ERRPOS(x) ((x)->unode.a[2])
129 #define ERRDATA(x) ((x)->unode.a[3])
131 #define IS_ERROR(x) (ID(x)==ERROR_ID)
135 #define FORMAT_ERR_CODE TEXT("{ERR#%d")
136 #define FORMAT_ERR_POS TEXT("@%d}")
156 #endif //LHOGHO_ERRORS_H
[ HOME | INDEX | ATOMS | VARS | REFERENCE ]
Lhogho Developer's Documentation
Wed Jul 10 2013