-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.h
More file actions
28 lines (18 loc) · 713 Bytes
/
errors.h
File metadata and controls
28 lines (18 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "types.h"
#include <stdint.h>
#define ERR_UNDECLARED 10 // 2.2
#define ERR_DECLARED 11 // 2.2
#define ERR_VARIABLE 20 // 2.3
#define ERR_FUNCTION 21 // 2.3
#define ERR_WRONG_TYPE 30 // 2.4
#define ERR_MISSING_ARGS 40 // 2.5
#define ERR_EXCESS_ARGS 41 // 2.5
#define ERR_WRONG_TYPE_ARGS 42 // 2.5
void err_undeclared(const char *symbol, uint32_t line);
void err_declared(const char *symbol, uint32_t line);
void err_variable(const char *symbol, uint32_t line);
void err_function(const char *symbol, uint32_t line);
void err_wrong_type(const char *symbol, uint32_t line);
void err_missing_args();
void err_excess_args();
void err_wrong_type_args(Type type);