File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,11 @@ static char* readFile(const char* path) {
4444void proxpl_vm_init (VM * vm ) {
4545 // Standard CLOX uses a global VM instance, so we ignore the pointer for now
4646 // or assume 'vm' points to the global one.
47- initVM ();
47+ initVM (vm );
4848}
4949
5050void proxpl_vm_free (VM * vm ) {
51- freeVM ();
51+ freeVM (vm );
5252}
5353
5454InterpretResult proxpl_interpret_chunk (VM * vm , const Chunk * chunk ) {
@@ -63,7 +63,7 @@ InterpretResult proxpl_interpret_file(VM *vm, const char *path) {
6363 if (source == NULL ) return INTERPRET_COMPILE_ERROR ;
6464
6565 // Pass the source string to interpret
66- InterpretResult result = interpret (source );
66+ InterpretResult result = interpret (vm , source );
6767
6868 free (source );
6969 return result ;
You can’t perform that action at this time.
0 commit comments