Skip to content

Commit 9c9344c

Browse files
committedNov 1, 2020
Fix incorrect deprecation hints
"good" and "bad" were swapped in the process, resulting in wrong deprecation messages
1 parent 89dd05f commit 9c9344c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/script/lua_api/l_internal.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
3232

3333
#define luamethod_dep(class, good, bad) \
3434
{#bad, [](lua_State *L) -> int { \
35-
return l_deprecated_function(L, #bad, #good, &class::l_##good); \
35+
return l_deprecated_function(L, #good, #bad, &class::l_##good); \
3636
}}
3737

38-
#define luamethod_aliased(class, name, alias) \
39-
luamethod(class, name), \
40-
luamethod_dep(class, name, alias)
38+
#define luamethod_aliased(class, good, bad) \
39+
luamethod(class, good), \
40+
luamethod_dep(class, good, bad)
4141

4242
#define API_FCT(name) registerFunction(L, #name, l_##name, top)
4343

0 commit comments

Comments
 (0)
Please sign in to comment.