mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
parent
2ec8fbe7e5
commit
dff4beae02
12 changed files with 2 additions and 56 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue