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

Method push

include/sol/reference.hpp:385–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383 }
384
385 int push(lua_State* L_) const noexcept {
386#if SOL_IS_ON(SOL_SAFE_STACK_CHECK)
387 luaL_checkstack(L_, 1, "not enough Lua stack space to push this reference value");
388#endif // make sure stack doesn't overflow
389 lua_rawgeti(L_, LUA_REGISTRYINDEX, ref);
390 return 1;
391 }
392
393 void pop(lua_State* L_, int n = 1) const noexcept {
394 lua_pop(L_, n);

Callers

nothing calls this directly

Calls 1

luaL_checkstackFunction · 0.85

Tested by

no test coverage detected