MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / get

Method get

ogsr_engine/Luabind/src/weak_ref.cpp:183–190  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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 {

Callers 8

pushvalueMethod · 0.45
setMethod · 0.45
gettableMethod · 0.45
settableMethod · 0.45
lua_class_gettableMethod · 0.45
lua_class_settableMethod · 0.45
register_methodsMethod · 0.45
add_dependencyMethod · 0.45

Calls 3

get_weak_tableFunction · 0.85
lua_rawgetiFunction · 0.50
lua_removeFunction · 0.50

Tested by

no test coverage detected