LuaJIT as a C coroutine library

  • From: Thiago Padilha <tpadilha84@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 20 Oct 2014 07:22:19 -0300

Hi

I'm developing a C project that has these two requirements:

- Embed lua/luajit for third party scripting
- Use C coroutines in some parts of the code that have nothing to do with lua

Since luajit already implements true C coroutines across different
platforms to enable yields across C calls, is it possible to reuse
it's coroutine infrastructure for managing pure C coroutines(and avoid
having to depend on another coroutine library)?

Other related posts: