1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-12 05:23:02 +00:00

Add lookups for marshalling and unmarshalling.

Allow generating lookup tables from the current environment.
This commit is contained in:
Calvin Rose
2018-10-21 01:35:07 -04:00
parent c3ba613959
commit 98f2c6feab
8 changed files with 133 additions and 41 deletions

View File

@@ -74,11 +74,11 @@ void repl_init(void) {
/* Janet line getter */
janet_def(env, "repl-yield", janet_wrap_cfunction(repl_yield));
janet_register("repl-yield", janet_wrap_cfunction(repl_yield));
janet_register("repl-yield", repl_yield);
/* Janet line getter */
janet_def(env, "js", janet_wrap_cfunction(cfun_js));
janet_register("js", janet_wrap_cfunction(cfun_js));
janet_register("js", cfun_js);
/* Run startup script */
Janet ret;