mirror of
https://github.com/janet-lang/janet
synced 2025-10-23 03:37:40 +00:00
Refactor native module declarations. marshal can now
serialize entire environment.
This commit is contained in:
@@ -394,7 +394,7 @@ static const DstReg cfuns[] = {
|
||||
};
|
||||
|
||||
DST_MODULE_ENTRY(DstArgs args) {
|
||||
DstTable *env = dst_env_arg(args);
|
||||
dst_env_cfuns(env, cfuns);
|
||||
DstTable *env = dst_env(args);
|
||||
dst_cfuns(env, "sqlite3", cfuns);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user