MCPcopy Create free account
hub / github.com/ThePhD/sol2 / push

Method push

include/sol/stack_reference.hpp:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 stateless_stack_reference& operator=(const stateless_stack_reference&) noexcept = default;
71
72 int push(lua_State* L_) const noexcept {
73#if SOL_IS_ON(SOL_SAFE_STACK_CHECK)
74 luaL_checkstack(L_, 1, "not enough Lua stack space to push a single reference value");
75#endif // make sure stack doesn't overflow
76 lua_pushvalue(L_, m_index);
77 return 1;
78 }
79
80 void pop(lua_State* L_, int pop_count = 1) const noexcept {
81 lua_pop(L_, pop_count);

Callers

nothing calls this directly

Calls 1

luaL_checkstackFunction · 0.85

Tested by

no test coverage detected