How to run a Lua coroutine in C++ with sol3?
I’m using sol2 (v3.3.0) in C++ to run Lua coroutines. I want to pass a Lua function to C++ and execute it as a coroutine. However, my attempts to convert sol::function
to sol::coroutine
are not working.