aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/chunk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytecode/chunk.h')
-rwxr-xr-xsrc/bytecode/chunk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bytecode/chunk.h b/src/bytecode/chunk.h
index c584d4a..9457fa9 100755
--- a/src/bytecode/chunk.h
+++ b/src/bytecode/chunk.h
@@ -20,10 +20,10 @@ typedef struct Chunk {
20 LineInfo *lines; 20 LineInfo *lines;
21 // Chunk name. 21 // Chunk name.
22 char *name; 22 char *name;
23 // Parameters 23
24 StringView *params; 24 // Number of locals and parameters.
25 // Locals. 25 size_t n_params;
26 StringView *locals; 26 size_t n_locals;
27} Chunk; 27} Chunk;
28 28
29#define NEW_CHUNK(NAME) chunk_init((StringView){(NAME), sizeof(NAME) - 1}) 29#define NEW_CHUNK(NAME) chunk_init((StringView){(NAME), sizeof(NAME) - 1})