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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user