lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> - Does anybody know how to keep the function in the thread ?

Duplicate it with lua_pushvalue before pushing the argument and resuming.
Make sure that the stack is at the same level when you resume again (that is,
pop all values returned by lua_resume).