Added 'range' to standard library, adjusted native functions

This commit is contained in:
2026-05-20 13:48:52 +10:00
parent f55f27726c
commit 750ebd1f99
6 changed files with 103 additions and 28 deletions
+1 -1
View File
@@ -405,7 +405,7 @@ static void processInvoke(Toy_VM* vm) {
case TOY_FUNCTION_NATIVE: {
//NOTE: arguments are on the stack, leave results on the stack
fn->native.callback(vm);
fn->native.callback(vm, &fn->native);
}
break;