Software /
code /
prosody
Diff
util-src/poll.c @ 12575:1f6f05a98fcd
util-src: Remove Lua 5.1 compat macros
Part of #1600
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Jul 2022 21:21:21 +0200 |
parent | 12316:6bb2f660f689 |
child | 12884:f5a75aaa8a25 |
line wrap: on
line diff
--- a/util-src/poll.c Sat Jul 02 17:30:06 2022 +0200 +++ b/util-src/poll.c Fri Jul 01 21:21:21 2022 +0200 @@ -44,9 +44,6 @@ #define STATE_MT "util.poll<" POLL_BACKEND ">" -#if (LUA_VERSION_NUM == 501) -#define luaL_setmetatable(L, tname) luaL_getmetatable(L, tname); lua_setmetatable(L, -2) -#endif #if (LUA_VERSION_NUM < 504) #define luaL_pushfail lua_pushnil #endif @@ -564,9 +561,7 @@ * Open library */ int luaopen_util_poll(lua_State *L) { -#if (LUA_VERSION_NUM > 501) luaL_checkversion(L); -#endif luaL_newmetatable(L, STATE_MT); {