lua-users home
lua-l archive

Re[5]: getting call stack in case of a run-time error

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


Hello Tomas,
Thursday, April 22, 2004, 3:48:31 PM, you wrote:
T> Hi Dmitriy,
>> I've read about lua_pcall in manual, but found that lua_resume doesn't
>> use it, but you mean, that if I'd use lua_cpcall for starting C
>> function in which start lua_resume for the lua thread, then I can get
>> all the stack (and thread stack too)? Thank you, i'll check this asap.
T> I'm sorry but I don't know if this scheme will work for threads...
T> Tomas
I'll try to do the following : push to stack error handling function,
push function to run, push function coroutine.create (or
coroutine.resume correspondingly) and call lua_pcall(L,1,1,err_func)
-- 
Best regards,
 Dmitriy mailto:iassenev@gsc-game.kiev.ua

AltStyle によって変換されたページ (->オリジナル) /