mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Log deprecated Lua function calls (#7491)
This commit is contained in:
parent
6f22d14206
commit
49509d2f74
6 changed files with 96 additions and 7 deletions
|
@ -1815,6 +1815,7 @@ void ObjectRef::Register(lua_State *L)
|
|||
|
||||
lua_pop(L, 1); // drop metatable
|
||||
|
||||
markAliasDeprecated(methods);
|
||||
luaL_openlib(L, 0, methods, 0); // fill methodtable
|
||||
lua_pop(L, 1); // drop methodtable
|
||||
|
||||
|
@ -1823,7 +1824,7 @@ void ObjectRef::Register(lua_State *L)
|
|||
}
|
||||
|
||||
const char ObjectRef::className[] = "ObjectRef";
|
||||
const luaL_Reg ObjectRef::methods[] = {
|
||||
luaL_Reg ObjectRef::methods[] = {
|
||||
// ServerActiveObject
|
||||
luamethod(ObjectRef, remove),
|
||||
luamethod_aliased(ObjectRef, get_pos, getpos),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue