Thanks Volodymyr. I've seen those C API just aftet sent my mail. Now I' m going to do some experiment in my code. Thanks again for your hints and courtesy.
Bob
Inviato da iPhone Il giorno 31/ott/2013, alle ore 22:19, Bezobiuk Volodymyr < dedoogun@gmail.com> ha scritto: You place lua_open(), lua_openlibs(), and create new coroutine by lua_newthread() before the main loop in C code. Then for sure you can resume/yield coroutine, created by lua_newthread() with lua_resume() and lua_yield(). It is really the right way. You can read about it in Lua manual and in the 'Programming in Lua' book.
Sincerely, Volodymyr.
|