aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ast.h
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-25 00:31:25 +0900
committernsfisis <nsfisis@gmail.com>2025-08-25 00:41:12 +0900
commit7f29d50e4558a700b7611dc72e87e7922ac6a345 (patch)
treeb4a8b7c41457d209eb91e29f23044610d6b4b700 /src/ast.h
parent36da139565202a9a39d1e4261ab8bf950041518b (diff)
downloadducc-7f29d50e4558a700b7611dc72e87e7922ac6a345.tar.gz
ducc-7f29d50e4558a700b7611dc72e87e7922ac6a345.tar.zst
ducc-7f29d50e4558a700b7611dc72e87e7922ac6a345.zip
feat: support static function
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast.h b/src/ast.h
index 0711e44..90fdeb0 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -29,6 +29,7 @@ struct Type {
struct Type* base;
int array_size;
struct AstNode* def;
+ BOOL is_static;
};
typedef struct Type Type;
@@ -118,6 +119,7 @@ typedef enum AstNodeKind AstNodeKind;
#define node_op __i1
#define node_stack_offset __i1
#define node_stack_size __i1
+#define node_function_is_static __i2
struct AstNode {
AstNodeKind kind;