Update lua_bridge.cpp

This commit is contained in:
blueloveTH 2024-05-02 12:42:02 +08:00
parent b4923644d8
commit 43ec97a707

View File

@ -204,7 +204,7 @@ struct PyLuaFunction: PyLuaObject{
vm->bind_notimplemented_constructor<PyLuaFunction>(type);
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");
const PyLuaFunction& self = _CAST(PyLuaFunction&, args[0]);
int base_size = lua_gettop(_L);