summaryrefslogtreecommitdiff
path: root/com.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-24 19:30:09 +0100
committerubq323 <ubq323@ubq323.website>2024-06-24 19:30:09 +0100
commitbc47478d855b08023409dbfc8550958991265c14 (patch)
tree804e45dd6b57917ccaf4d64832909061738b41e4 /com.h
parentbea93dc98b602472bb36635dfdf425d14d826673 (diff)
keep track of stack position while compiling
Diffstat (limited to 'com.h')
-rw-r--r--com.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/com.h b/com.h
index f08769e..26b7494 100644
--- a/com.h
+++ b/com.h
@@ -10,6 +10,7 @@ typedef struct _compiler Compiler;
struct _compiler {
State *S;
Chunk *ch;
+ int stack_cur;
};
Compiler compiler_new(Compiler *outer, Chunk *ch);