diff options
Diffstat (limited to 'util-src/table.c')
-rw-r--r-- | util-src/table.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util-src/table.c b/util-src/table.c index 63415541..93acae65 100644 --- a/util-src/table.c +++ b/util-src/table.c @@ -21,6 +21,9 @@ static int Lpack(lua_State* L) { 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"); |