Lua-like coroutine for C