summaryrefslogtreecommitdiffhomepage
path: root/lexer.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-08-24 13:26:52 +0200
committerJo-Philipp Wich <jo@mein.io>2020-08-25 20:38:15 +0200
commit2d2ab2f4f0c56f613fb093180ed58f990f3c67e0 (patch)
tree2fb218d690d3ccc68873b449a14aedf091031f50 /lexer.h
parent6564992f2464e561d11f82f65731bc0c44ea9e2a (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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexer.h b/lexer.h
index ff653bd..1ce52f7 100644
--- a/lexer.h
+++ b/lexer.h
@@ -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];