1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-07 19:13:02 +00:00

Allow marshaling of more functions for core.

Fix indentation in some files.
This commit is contained in:
Calvin Rose
2018-08-22 21:41:25 -04:00
parent 50aefc8865
commit 510feeed7f
14 changed files with 234 additions and 193 deletions

View File

@@ -137,6 +137,12 @@ const void *dst_strbinsearch(
return NULL;
}
void dst_register(const char *name, Dst value) {
Dst regkey = dst_cstringv(name);
dst_table_put(dst_vm_registry, regkey, value);
dst_table_put(dst_vm_registry, value, regkey);
}
/* Add a module definition */
void dst_env_def(DstTable *env, const char *name, Dst val) {
DstTable *subt = dst_table(1);