changeset 7821 | 54669df178c2 |
parent 7120 | 2b4432cc9c29 |
child 7830 | db15e9f6d77f |
--- a/util-src/ringbuffer.c Fri Jan 06 13:14:17 2017 +0100 +++ b/util-src/ringbuffer.c Sun Jan 08 14:21:08 2017 +0100 @@ -197,6 +197,9 @@ } 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); lua_setfield(L, -2, "__tostring");