Updated Toy

This commit is contained in:
2023-03-15 06:40:34 +11:00
parent c4bd1f20d2
commit a04c506811
6 changed files with 22 additions and 222 deletions

View File

@@ -4,12 +4,11 @@
#include "repl_tools.h"
#include "toy_memory.h"
#include "toy_drive_system.h"
#include "toy_literal_array.h"
#include "toy_console_colors.h"
#include "lib_runner.h"
#include <stdio.h>
//errors here should be fatal
@@ -121,7 +120,7 @@ static int nativeLoadRootNode(Toy_Interpreter* interpreter, Toy_LiteralArray* ar
return -1;
}
Toy_Literal filePathLiteral = Toy_getFilePathLiteral(interpreter, &drivePathLiteral);
Toy_Literal filePathLiteral = Toy_getDrivePathLiteral(interpreter, &drivePathLiteral);
Toy_freeLiteral(drivePathLiteral); //not needed anymore