mirror of
https://github.com/janet-lang/janet
synced 2025-10-29 14:47:42 +00:00
Add stdi and stdout to file io.
This commit is contained in:
@@ -38,6 +38,7 @@ int debug_compile_and_run(Gst *vm, GstValue ast, GstValue env) {
|
||||
/* Try to compile generated AST */
|
||||
gst_compiler(&c, vm);
|
||||
gst_compiler_usemodule(&c, "std");
|
||||
gst_compiler_usemodule(&c, "std.io");
|
||||
gst_compiler_globals(&c, env);
|
||||
func = gst_wrap_function(gst_compiler_compile(&c, ast));
|
||||
/* Check for compilation errors */
|
||||
|
||||
Reference in New Issue
Block a user