util-src/table.c
changeset 7821 54669df178c2
parent 7541 a3a4ed0d34f4
child 7838 a809dcfd0c5b
--- a/util-src/table.c	Fri Jan 06 13:14:17 2017 +0100
+++ b/util-src/table.c	Sun Jan 08 14:21:08 2017 +0100
@@ -21,6 +21,9 @@
 
 
 int luaopen_util_table(lua_State* L) {
+#if (LUA_VERSION_NUM > 501)
+	luaL_checkversion(L);
+#endif
 	lua_newtable(L);
 	lua_pushcfunction(L, Lcreate_table);
 	lua_setfield(L, -2, "create");