Sfoglia il codice sorgente

Update lua_bridge.cpp

blueloveTH 1 anno fa
parent
commit
43ec97a707
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);