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

Method unsafe_function_result

include/sol/function.hpp:61–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 inline unsafe_function_result::unsafe_function_result(protected_function_result&& o) noexcept
62 : L(o.lua_state()), index(o.stack_index()), returncount(o.return_count()) {
63 // Must be manual, otherwise destructor will screw us
64 // return count being 0 is enough to keep things clean
65 // but we will be thorough
66 o.abandon();
67 }
68 inline unsafe_function_result& unsafe_function_result::operator=(protected_function_result&& o) noexcept {
69 L = o.lua_state();
70 index = o.stack_index();

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected