Diff

util-src/crand.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 12470:80f3123053e2
child 12976:a187600ec7d6
line wrap: on
line diff
--- a/util-src/crand.c	Sat Jul 02 17:30:06 2022 +0200
+++ b/util-src/crand.c	Fri Jul 01 21:21:21 2022 +0200
@@ -124,9 +124,7 @@
 }
 
 int luaopen_util_crand(lua_State *L) {
-#if (LUA_VERSION_NUM > 501)
 	luaL_checkversion(L);
-#endif
 
 	lua_createtable(L, 0, 2);
 	lua_pushcfunction(L, Lrandom);