move to meson for build system

This commit is contained in:
Lobo 2026-01-19 10:25:56 -03:00
parent fdd1ee61b5
commit 9616fb616e
28 changed files with 123 additions and 24 deletions

22
src/chunk.h Normal file
View file

@ -0,0 +1,22 @@
#ifndef CHUNK_H
#define CHUNK_H
#include "common.h"
#include "object.h"
/** Bytecode chunk */
typedef struct Bc {
U8 *items;
Z count, capacity;
struct {
O *items;
Z count, capacity;
} constants;
} Bc;
V chunk_emit_byte(Bc *, U8);
V chunk_emit_sleb128(Bc *, I);
I chunk_add_constant(Bc *, O);
V chunk_free(Bc *);
#endif