Updated Toy, added repl_tools and lib copying to the build

This commit is contained in:
2022-11-12 12:00:04 +00:00
parent 7c886b071f
commit 813b94faf5
7 changed files with 428 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
#include "repl_tools.h"
#include "lib_standard.h"
#include "lib_timer.h"
#include "console_colors.h"
@@ -108,6 +109,7 @@ void runBinary(unsigned char* tb, size_t size) {
//inject the libs
injectNativeHook(&interpreter, "standard", hookStandard);
injectNativeHook(&interpreter, "timer", hookTimer);
runInterpreter(&interpreter, tb, size);
freeInterpreter(&interpreter);