mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
io library file creation
This commit is contained in:
1
test/scripts/lib/io.toy
Normal file
1
test/scripts/lib/io.toy
Normal file
@@ -0,0 +1 @@
|
||||
print "Nothing is here";
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "../repl/lib_random.h"
|
||||
#include "../repl/lib_runner.h"
|
||||
#include "../repl/lib_math.h"
|
||||
#include "../repl/lib_io.h"
|
||||
|
||||
//supress the print output
|
||||
static void noPrintFn(const char* output) {
|
||||
@@ -78,6 +79,7 @@ int main() {
|
||||
{"runner.toy", "runner", Toy_hookRunner},
|
||||
{"random.toy", "random", Toy_hookRandom},
|
||||
{"math.toy", "math", Toy_hookMath},
|
||||
{"io.toy", "io", Toy_hookIO},
|
||||
{NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user