🔥 change file structure & add pack.py

This commit is contained in:
ValKmjolnir
2024-03-03 23:12:16 +08:00
parent 4da8bbbd40
commit cc04720f12
45 changed files with 259 additions and 181 deletions

View File

@@ -414,10 +414,16 @@ void vm::die(const std::string& str) {
void vm::run(
const codegen& gen,
const linker& linker,
const std::vector<std::string>& argv
) {
init(gen.strs(), gen.nums(), gen.natives(),
gen.codes(), gen.globals(), linker.get_file_list(), argv);
const std::vector<std::string>& argv) {
init(
gen.strs(),
gen.nums(),
gen.natives(),
gen.codes(),
gen.globals(),
linker.get_file_list(),
argv
);
#ifndef _MSC_VER
// using labels as values/computed goto
const void* oprs[] = {