Explorar o código

Update lua_bridge.cpp

blueloveTH hai 1 ano
pai
achega
43ec97a707
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      3rd/lua_bridge/src/lua_bridge.cpp

+ 1 - 1
3rd/lua_bridge/src/lua_bridge.cpp

@@ -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);