We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80b475b commit 7e7f207Copy full SHA for 7e7f207
1 file changed
src/proxpl_api.c
@@ -44,11 +44,11 @@ static char* readFile(const char* path) {
44
void proxpl_vm_init(VM *vm) {
45
// Standard CLOX uses a global VM instance, so we ignore the pointer for now
46
// or assume 'vm' points to the global one.
47
- initVM();
+ initVM(vm);
48
}
49
50
void proxpl_vm_free(VM *vm) {
51
- freeVM();
+ freeVM(vm);
52
53
54
InterpretResult proxpl_interpret_chunk(VM *vm, const Chunk *chunk) {
@@ -63,7 +63,7 @@ InterpretResult proxpl_interpret_file(VM *vm, const char *path) {
63
if (source == NULL) return INTERPRET_COMPILE_ERROR;
64
65
// Pass the source string to interpret
66
- InterpretResult result = interpret(source);
+ InterpretResult result = interpret(vm, source);
67
68
free(source);
69
return result;
0 commit comments