util-src: Remove Lua 5.1 compat macros

Part of #1600
This commit is contained in:
Kim Alvefur 2022-07-01 21:21:21 +02:00
parent 2ec8fbe7e5
commit dff4beae02
12 changed files with 2 additions and 56 deletions

View file

@ -314,9 +314,7 @@ static int rb_new(lua_State *L) {
}
int luaopen_util_ringbuffer(lua_State *L) {
#if (LUA_VERSION_NUM > 501)
luaL_checkversion(L);
#endif
if(luaL_newmetatable(L, "ringbuffer_mt")) {
lua_pushcfunction(L, rb_tostring);