#include <stdio.h>
#include <string.h>
#include <time.h>
#include <orbit/orbit.h>

int main(int argc, const char** argv) {
    
    if(argc < 2) {
        fprintf(stderr, "error: no input module file.\n");
        return -1;
    }
    
    OrbitVM* vm = orbit_vmNew();
    if(orbit_vmInvoke(vm, argv[1], "main")) {
        fprintf(stderr, "error: interpreter error\n");
    }
    orbit_vmDealloc(vm);
}
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <orbit/orbit.h>

int main(int argc, const char** argv) {
    
    if(argc < 2) {
        fprintf(stderr, "error: no input module file.\n");
        return -1;
    }
    
    OrbitVM* vm = orbit_vmNew();
    if(!orbit_vmInvoke(vm, argv[1], "main")) {
        fprintf(stderr, "error: interpreter error\n");
    }
    orbit_vmDealloc(vm);
}
Fix wrong success check in runtime cli
Fix wrong success check in runtime cli
