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

Method protected_handler

include/sol/protected_handler.hpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 int stack_index;
44
45 protected_handler(std::false_type, lua_State* L_, const Target& target_) : m_L(L_), target(target_), stack_index(0) {
46 if (ShouldPush) {
47 stack_index = lua_gettop(L_) + 1;
48 target.push(L_);
49 }
50 }
51
52 protected_handler(std::true_type, lua_State* L_, const Target& target_) : m_L(L_), target(target_), stack_index(0) {
53 if (ShouldPush) {

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
stack_indexMethod · 0.45

Tested by

no test coverage detected