Software /
code /
prosody
Diff
util-src/signal.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 | 10799:763bb2ce3f60 |
child | 12976:a187600ec7d6 |
line wrap: on
line diff
--- a/util-src/signal.c Sat Jul 02 17:30:06 2022 +0200 +++ b/util-src/signal.c Fri Jul 01 21:21:21 2022 +0200 @@ -36,9 +36,6 @@ #include "lua.h" #include "lauxlib.h" -#if (LUA_VERSION_NUM == 501) -#define luaL_setfuncs(L, R, N) luaL_register(L, NULL, R) -#endif #if (LUA_VERSION_NUM < 503) #define lua_isinteger(L, n) lua_isnumber(L, n) #endif @@ -381,9 +378,7 @@ }; int luaopen_util_signal(lua_State *L) { -#if (LUA_VERSION_NUM > 501) luaL_checkversion(L); -#endif int i = 0; /* add the library */