mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-21 18:36:41 +00:00
Scrap Virtual Machine and begin again
I just didn't like the style of it.
This commit is contained in:
14
src/main.cpp
14
src/main.cpp
@@ -166,15 +166,13 @@ int main(int argc, char **argv) {
|
||||
|
||||
ssa_gen_tree(&ssa);
|
||||
|
||||
#if 1
|
||||
{
|
||||
VirtualMachine vm = {};
|
||||
vm_init(&vm, &ssa.module);
|
||||
defer (vm_destroy(&vm));
|
||||
#if 0
|
||||
VirtualMachine vm = {};
|
||||
vm_init(&vm, &ssa.module);
|
||||
// defer (vm_destroy(&vm));
|
||||
|
||||
Array<vmValue> args = {}; // Empty
|
||||
vm_call_proc_by_name(&vm, make_string("main"), args);
|
||||
}
|
||||
Array<vmValue> main_args = {}; // Empty
|
||||
vm_call_proc_by_name(&vm, make_string("main"), main_args);
|
||||
#endif
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user