[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re[5]: getting call stack in case of a run-time error
- From: Dmitriy Iassenev <iassenev@...>
- Date: Thu, 22 Apr 2004 16:46:36 +0300
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