lua: remove unused #define mp_lua_len

This is unused since 548ef07864 and 7f91e2684e.
This commit is contained in:
Guido Cella 2024-09-26 09:57:08 +02:00 committed by sfan5
parent d54e8c3f40
commit 69ced646f8
1 changed files with 0 additions and 2 deletions

View File

@ -105,7 +105,6 @@ struct script_ctx {
#if LUA_VERSION_NUM <= 501
#define mp_cpcall lua_cpcall
#define mp_lua_len lua_objlen
#else
// Curse whoever had this stupid idea. Curse whoever thought it would be a good
// idea not to include an emulated lua_cpcall() even more.
@ -115,7 +114,6 @@ static int mp_cpcall (lua_State *L, lua_CFunction func, void *ud)
lua_pushlightuserdata(L, ud);
return lua_pcall(L, 1, 0, 0);
}
#define mp_lua_len lua_rawlen
#endif
// Ensure that the given argument exists, even if it's nil. Can be used to