Reimplement queues as circular buffers
This commit is contained in:
@@ -34,6 +34,11 @@ lua_Integer LuaStack::ckinteger(LuaSlot s) const {
|
||||
return lua_tointeger(L_, s);
|
||||
}
|
||||
|
||||
int LuaStack::ckint(LuaSlot s) const {
|
||||
luaL_checktype(L_, s, LUA_TNUMBER);
|
||||
return (int)lua_tointeger(L_, s);
|
||||
}
|
||||
|
||||
lua_Number LuaStack::cknumber(LuaSlot s) const {
|
||||
luaL_checktype(L_, s, LUA_TNUMBER);
|
||||
return lua_tonumber(L_, s);
|
||||
|
||||
Reference in New Issue
Block a user