summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-26 13:28:07 +0200
committerJo-Philipp Wich <jo@mein.io>2021-07-11 15:49:14 +0200
commitbf8522625f55fa2657dee3b9356b20fa0dba725f (patch)
tree82dea1608c84f4b6314f2500271258e4455ecf9d /lib.c
parente2b3d2ef25c5e55122c1e41ab56af1075209b47d (diff)
treewide: move ressource type registry into vm instance
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index ce09d99..6438bec 100644
--- a/lib.c
+++ b/lib.c
@@ -1490,7 +1490,7 @@ uc_printf(uc_vm *vm, size_t nargs)
static bool
uc_require_so(uc_vm *vm, const char *path, uc_value_t **res)
{
- void (*init)(uc_value_t *);
+ void (*init)(uc_vm *, uc_value_t *);
uc_value_t *scope;
struct stat st;
void *dlh;
@@ -1519,7 +1519,7 @@ uc_require_so(uc_vm *vm, const char *path, uc_value_t **res)
scope = ucv_object_new(vm);
- init(scope);
+ init(vm, scope);
*res = scope;