Add support for object parameters to Wren calls

This commit is contained in:
King_DuckZ 2024-05-25 01:47:51 +02:00
commit 05298b6111
9 changed files with 282 additions and 37 deletions

View file

@ -1,4 +1,4 @@
/* Copyright 2020-2022, Michele Santullo
/* Copyright 2020-2024, Michele Santullo
* This file is part of wrenpp.
*
* Wrenpp is free software: you can redistribute it and/or modify
@ -63,8 +63,6 @@ void user_get_env (wren::VM& vm, wren::ModuleAndName) {
} //unnamed namespace
int main() {
//typedef wren::ModuleAndName MN;
wren::DefConfiguration config;
wren::VM vm(&config, nullptr);
vm.callback_manager().add_callback(true, "main", "User", "get_env(_)", [](){return &user_get_env;});