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

Method stack_guard

include/sol/stack_guard.hpp:49–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 std::function<void(int, int)> on_mismatch;
48
49 stack_guard(lua_State* L) : stack_guard(L, lua_gettop(L)) {
50 }
51 stack_guard(lua_State* L, int top, std::function<void(int, int)> fx = detail::stack_fail) : L(L), top(top), on_mismatch(std::move(fx)) {
52 }
53 bool check_stack(int modification = 0) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected