diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-07-01 12:31:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-01 12:31:49 +0200 |
commit | 49509d2f746b7a8d50e685cfd0e0b391676b9466 (patch) | |
tree | e73ea6eaab8682550acf38ae29c22ea00a74f6e6 /src/script/lua_api/l_noise.cpp | |
parent | 6f22d14206824911b620ecec450689f84e6d278b (diff) | |
download | minetest-49509d2f746b7a8d50e685cfd0e0b391676b9466.tar.gz minetest-49509d2f746b7a8d50e685cfd0e0b391676b9466.tar.bz2 minetest-49509d2f746b7a8d50e685cfd0e0b391676b9466.zip |
Log deprecated Lua function calls (#7491)
Diffstat (limited to 'src/script/lua_api/l_noise.cpp')
-rw-r--r-- | src/script/lua_api/l_noise.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/script/lua_api/l_noise.cpp b/src/script/lua_api/l_noise.cpp index d382ca3bd..ac3ddd479 100644 --- a/src/script/lua_api/l_noise.cpp +++ b/src/script/lua_api/l_noise.cpp @@ -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), |