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

Method pushvalue

ogsr_engine/Luabind/src/object.cpp:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63#undef LUABIND_PROXY_ASSIGNMENT_OPERATOR
64
65 void proxy_object::pushvalue() const
66 {
67 assert((m_key.is_valid()) && "you cannot call pushvalue() on an uninitialized object");
68
69 lua_State* L = m_obj->lua_state();
70 m_obj->pushvalue();
71 m_key.get(L);
72 lua_gettable(L, -2);
73 // remove the table and leave the value on top of the stack
74 lua_remove(L, -2);
75 }
76
77 void proxy_object::set() const
78 {

Callers 5

member_to_stringFunction · 0.45
print_free_functionsFunction · 0.45
get_class_infoFunction · 0.45
setMethod · 0.45

Calls 8

lua_stateMethod · 0.80
lua_gettableFunction · 0.50
lua_removeFunction · 0.50
lua_rawgetiFunction · 0.50
lua_stateFunction · 0.50
lua_rawgetFunction · 0.50
is_validMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected