MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / LuaStackCheck

Method LuaStackCheck

src/app/app-common/Lua.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78class LuaStackCheck final {
79 public:
80 LuaStackCheck(const std::shared_ptr<LuaStateImpl>& lua) : mLua(lua) {
81 if (!lua) {
82 return;
83 }
84 mStackSize = lua_gettop(*lua);
85 }
86
87 ~LuaStackCheck() noexcept {
88 if (!mLua) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected