aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 902c3db2c..7ff6b7eb7 100644
--- a/src/main.cpp
+++ b/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
{