summaryrefslogtreecommitdiffstats
path: root/bytecode/encoding.h
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2023-02-11 13:40:10 -0800
committerRose Hogenson <rhogenson@posteo.net>2023-02-11 13:40:10 -0800
commit60622614731bc42dd44704d3cff55b4e4c4f492c (patch)
treedcf3b31f46c1b46e23d5c379a9201195ccb4f1ce /bytecode/encoding.h
parent5aec138c3832a65bad4b2bdaa7ca36cf5c279ac8 (diff)
downloadsml-60622614731bc42dd44704d3cff55b4e4c4f492c.tar.zst
Write a garbage collector.
Does it work? No, but it compiles.
Diffstat (limited to 'bytecode/encoding.h')
-rw-r--r--bytecode/encoding.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bytecode/encoding.h b/bytecode/encoding.h
index 49357f6..fed187b 100644
--- a/bytecode/encoding.h
+++ b/bytecode/encoding.h
@@ -9,6 +9,8 @@
typedef uint8_t local;
+#define NUM_LOCALS 8
+
// An arg can be a value or a constant.
struct arg {
local local;