Moved lib_runner's drive system into the core of the lang

This commit is contained in:
2023-03-15 06:12:35 +11:00
parent a04d2c4816
commit e2fa1cf2e8
7 changed files with 133 additions and 195 deletions

12
source/toy_drive_system.h Normal file
View File

@@ -0,0 +1,12 @@
#include "toy_common.h"
#include "toy_literal.h"
#include "toy_interpreter.h"
//file system API - these need to be set by the host
TOY_API void Toy_initDriveSystem();
TOY_API void Toy_freeDriveSystem();
//file system API - for use with libs
TOY_API void Toy_setDrivePath(char* drive, char* path);
TOY_API Toy_Literal Toy_getDrivePathLiteral(Toy_Interpreter* interpreter, Toy_Literal* drivePathLiteral);