Implemented the timer library

This commit is contained in:
2022-11-11 17:18:07 +00:00
parent 2c143a8be5
commit e0ab4106fa
5 changed files with 352 additions and 41 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);