1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-17 15:57:12 +00:00

Cleanup boot.janet to be more like normal source code.

Don't use `undef`, just use private defines.
This commit is contained in:
Calvin Rose
2021-01-31 09:08:39 -06:00
parent c9ea3ac304
commit d122a75efd
2 changed files with 90 additions and 138 deletions

View File

@@ -1206,7 +1206,8 @@ JanetTable *janet_core_env(JanetTable *replacements) {
"if native modules are compatible with the host program."));
/* Allow references to the environment */
janet_def(env, "_env", janet_wrap_table(env), JDOC("The environment table for the current scope."));
janet_def(env, "root-env", janet_wrap_table(env),
JDOC("The root environment used to create environments with (make-env)."));
janet_load_libs(env);
janet_gcroot(janet_wrap_table(env));