[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Setting an error function for lua_resume
- From: "Moe H." <moe334578-lua@...>
- Date: Mon, 13 Dec 2004 19:58:41 -0800 (PST)
I am wondering if there is an easy way to set an error handler function when calling lua_resume.
I would like to be able to trap errors in threads and display a callstack. But it appears that
the stack has been unwound by the time lua_resume returns. The solution to this when using
lua_pcall is to set an error handler function, and I was wondering if there was a similar
technique available for threads.
Thanks very much,