This commit is contained in:
2026-04-28 08:04:04 -05:00
parent 960cc76005
commit 8ff66ac1e2
3 changed files with 8 additions and 6 deletions

View File

@@ -13,9 +13,11 @@ struct BytecodePrototype {
using Value = std::variant<int32_t, float>;
struct Function {
uint16_t n_pars = 0;
uint16_t n_locals = 0;
ByteArray code {};
uint16_t n_pars;
uint16_t n_locals;
ByteArray code;
Function(uint16_t n_pars_, uint16_t n_locals_) : n_pars(n_pars_), n_locals(n_locals_), code(ByteArray {}) {}
};
std::vector<ConstantValue> constants {};