1
0
forked from Mirror/wren

[0.4.0] Introduce WrenLoadModuleResult, fix unfreed strings from host. (#778)

This commit is contained in:
ruby
2020-12-03 09:27:54 -08:00
committed by GitHub
parent e7071fffa5
commit 6bd2f810e2
7 changed files with 99 additions and 35 deletions

View File

@ -76,7 +76,7 @@ typedef struct
PathType pathType(const char* path);
//file helpers
char* readFile(const char* path);
char* readModule(WrenVM* vm, const char* module);
WrenLoadModuleResult readModule(WrenVM* vm, const char* module);
//vm helpers
void vm_write(WrenVM* vm, const char* text);
void reportError(WrenVM* vm, WrenErrorType type, const char* module, int line, const char* message);