This commit is contained in:
Lobo 2026-01-20 11:05:59 -03:00
parent ce345f2440
commit 1185690ce6
24 changed files with 597 additions and 86 deletions

View file

@ -9,6 +9,7 @@
/** Bytecode chunk */
typedef struct Bc {
I ref;
const char *name;
U8 *items;
Z count, capacity;
struct {
@ -17,7 +18,7 @@ typedef struct Bc {
} constants;
} Bc;
Bc *chunk_new(V);
Bc *chunk_new(const char *);
V chunk_acquire(Bc *);
V chunk_release(Bc *);