| 25407 | |
| 25408 | template <typename... Ret, typename... Args> |
| 25409 | decltype(auto) call(Args&&... args) { |
| 25410 | // some users screw up coroutine.create |
| 25411 | // and try to use it with sol::coroutine without ever calling the first resume in Lua |
| 25412 | // this makes the stack incompatible with other kinds of stacks: protect against this |
| 25413 | // make sure coroutines don't screw us over |
| 25414 | base_t::push(); |
| 25415 | int pushcount = stack::multi_push_reference(lua_state(), std::forward<Args>(args)...); |
| 25416 | return invoke(types<Ret...>(), std::make_index_sequence<sizeof...(Ret)>(), pushcount); |
| 25417 | } |
| 25418 | }; |
| 25419 | } // namespace sol |
| 25420 |
nothing calls this directly
no test coverage detected