[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_pcall vs lua_call
- From: "Paul Moore" <p.f.moore@...>
- Date: Fri, 18 Jul 2008 19:54:01 +0100
2008/7/18 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> Given that I have a panic function, is there any benefit to using
>> lua_pcall over lua_call?
>
> A panic function is not a way to handle errors in your app; it's just
> what it says, a panic exit... So, use lua_pcall or lua_cpcall.
Thanks. I hadn't thought of lua_cpcall in this context. That will do
what I need.
Thanks,
Paul.