MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / protected_function_result

Method protected_function_result

extlibs/sol3/include/sol/sol.hpp:18780–18786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18778 }
18779
18780 inline protected_function_result::protected_function_result(unsafe_function_result&& o) noexcept
18781 : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()), popcount(o.return_count()), err(o.status()) {
18782 // Must be manual, otherwise destructor will screw us
18783 // return count being 0 is enough to keep things clean
18784 // but we will be thorough
18785 o.abandon();
18786 }
18787
18788 inline protected_function_result& protected_function_result::operator=(unsafe_function_result&& o) noexcept {
18789 L = o.lua_state();

Callers

nothing calls this directly

Calls 5

lua_stateMethod · 0.45
stack_indexMethod · 0.45
return_countMethod · 0.45
statusMethod · 0.45
abandonMethod · 0.45

Tested by

no test coverage detected