void Stack::pushTable(const TableRef &value) { const int ref = value.getRef(); if (ref != LUA_REFNIL) { lua_getref(&_luaState, ref); } else { lua_pushnil(&_luaState); } }