Fix incorrect deprecation hints

"good" and "bad" were swapped in the process, resulting in wrong deprecation messages
master
SmallJoker 2020-11-01 12:52:09 +01:00
parent 89dd05fdf3
commit 9c9344ceb3
1 changed files with 4 additions and 4 deletions

View File

@ -32,12 +32,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define luamethod_dep(class, good, bad) \ #define luamethod_dep(class, good, bad) \
{#bad, [](lua_State *L) -> int { \ {#bad, [](lua_State *L) -> int { \
return l_deprecated_function(L, #bad, #good, &class::l_##good); \ return l_deprecated_function(L, #good, #bad, &class::l_##good); \
}} }}
#define luamethod_aliased(class, name, alias) \ #define luamethod_aliased(class, good, bad) \
luamethod(class, name), \ luamethod(class, good), \
luamethod_dep(class, name, alias) luamethod_dep(class, good, bad)
#define API_FCT(name) registerFunction(L, #name, l_##name, top) #define API_FCT(name) registerFunction(L, #name, l_##name, top)