On Oct 10, 2015, at 6:57 AM, Christian N. < cn00@gmx.at> wrote:
On 2015-10-08 19:48 +0200, Soni L. wrote:
I don't think that would be possible, as yielding would jump outside lua_load using longjmp, losing any information lua_load has stored on the C stack (probably even leaking memory). However, using something like the C++ library Boost.Context or Boost.Coroutine, a workaround might maybe be possible as these libraries provide a way to sort of save the C stack.
More to the point is why the original OP feels yielding during lua_load() is necessary.
—Tim
|