| 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(); |
nothing calls this directly
no test coverage detected