| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected