mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
Update lua_bridge.cpp
This commit is contained in:
parent
b4923644d8
commit
43ec97a707
@ -204,7 +204,7 @@ struct PyLuaFunction: PyLuaObject{
|
|||||||
vm->bind_notimplemented_constructor<PyLuaFunction>(type);
|
vm->bind_notimplemented_constructor<PyLuaFunction>(type);
|
||||||
vm->_all_types[PK_OBJ_GET(Type, type)].subclass_enabled = false;
|
vm->_all_types[PK_OBJ_GET(Type, type)].subclass_enabled = false;
|
||||||
|
|
||||||
vm->bind_method<-1>(type, "__call__", [](VM* vm, ArgsView args){
|
vm->bind_method<-1>(type, __call__, [](VM* vm, ArgsView args){
|
||||||
if(args.size() < 1) vm->TypeError("__call__ takes at least 1 argument");
|
if(args.size() < 1) vm->TypeError("__call__ takes at least 1 argument");
|
||||||
const PyLuaFunction& self = _CAST(PyLuaFunction&, args[0]);
|
const PyLuaFunction& self = _CAST(PyLuaFunction&, args[0]);
|
||||||
int base_size = lua_gettop(_L);
|
int base_size = lua_gettop(_L);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user