Add support for object parameters to Wren calls
This commit is contained in:
parent
b00bd59027
commit
05298b6111
9 changed files with 282 additions and 37 deletions
|
@ -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;});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue