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
|
@ -122,6 +122,7 @@ void LuaPerlinNoise::Register(lua_State *L)
|
|||
|
||||
lua_pop(L, 1);
|
||||
|
||||
markAliasDeprecated(methods);
|
||||
luaL_openlib(L, 0, methods, 0);
|
||||
lua_pop(L, 1);
|
||||
|
||||
|
@ -130,7 +131,7 @@ void LuaPerlinNoise::Register(lua_State *L)
|
|||
|
||||
|
||||
const char LuaPerlinNoise::className[] = "PerlinNoise";
|
||||
const luaL_Reg LuaPerlinNoise::methods[] = {
|
||||
luaL_Reg LuaPerlinNoise::methods[] = {
|
||||
luamethod_aliased(LuaPerlinNoise, get_2d, get2d),
|
||||
luamethod_aliased(LuaPerlinNoise, get_3d, get3d),
|
||||
{0,0}
|
||||
|
@ -380,6 +381,7 @@ void LuaPerlinNoiseMap::Register(lua_State *L)
|
|||
|
||||
lua_pop(L, 1);
|
||||
|
||||
markAliasDeprecated(methods);
|
||||
luaL_openlib(L, 0, methods, 0);
|
||||
lua_pop(L, 1);
|
||||
|
||||
|
@ -388,7 +390,7 @@ void LuaPerlinNoiseMap::Register(lua_State *L)
|
|||
|
||||
|
||||
const char LuaPerlinNoiseMap::className[] = "PerlinNoiseMap";
|
||||
const luaL_Reg LuaPerlinNoiseMap::methods[] = {
|
||||
luaL_Reg LuaPerlinNoiseMap::methods[] = {
|
||||
luamethod_aliased(LuaPerlinNoiseMap, get_2d_map, get2dMap),
|
||||
luamethod_aliased(LuaPerlinNoiseMap, get_2d_map_flat, get2dMap_flat),
|
||||
luamethod_aliased(LuaPerlinNoiseMap, calc_2d_map, calc2dMap),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue