diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-08-24 13:26:52 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-08-25 20:38:15 +0200 |
commit | 2d2ab2f4f0c56f613fb093180ed58f990f3c67e0 (patch) | |
tree | 2fb218d690d3ccc68873b449a14aedf091031f50 /lexer.h | |
parent | 6564992f2464e561d11f82f65731bc0c44ea9e2a (diff) |
treewide: add dedicated T_CFUNC type
Tag C function values with a dedicated T_CFUNC type to clearly differentiate
them from runtime declared functions.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lexer.h')
-rw-r--r-- | lexer.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,7 +20,8 @@ #include "ast.h" #define __T_MAX 69 -#define T_EXCEPTION (__T_MAX + 0) +#define T_EXCEPTION (__T_MAX + 0) +#define T_CFUNC (__T_MAX + 1) extern const char *tokennames[__T_MAX]; |