[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: coroutines and error handling
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 25 Jun 2003 15:11:40 -0300
>If I start my lua script using lua_pcall() I can set an error handler and
>that way get stack dumps etc instead of just the error message itself.
>However, if I use coroutines and therefore start the scripts using
>lua_resume I do not have this possibility in the call.
>So how do I set an error handler when using lua_resume? Especially as I
>can't do it through another pcall inside the script either.
Start your interaction with Lua with lua_cpcall, as lua.c does.