L may not be the same pointer as was used when creating this reference since it may be a thread that shares the same globals table.
| 181 | // since it may be a thread that shares |
| 182 | // the same globals table. |
| 183 | void weak_ref::get(lua_State* L) const |
| 184 | { |
| 185 | assert(m_impl); |
| 186 | assert(L); |
| 187 | get_weak_table(L); |
| 188 | lua_rawgeti(L, -1, m_impl->ref); |
| 189 | lua_remove(L, -2); |
| 190 | } |
| 191 | |
| 192 | lua_State* weak_ref::state() const |
| 193 | { |
no test coverage detected