[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua C++ exception catching too broad.
- From: Mark Hamburg <mhamburg@...>
- Date: Sat, 29 Jul 2006 17:01:29 -0700
If you do that, I think it will probably leave the Lua state messed up.
Mark
on 7/29/06 11:24 AM, Joe Smith at unknown_kev_cat@hotmail.com wrote:
> When compiling lua as C++ the exception catching is too broad.
> in luaconf.h "catch(...)" is used as part of the definition of LUAI_TRY.
>
> However, that could catch a programs own internal exceptions, which may have
> valid reasons to jump past lua in the unwind path.
> Instead please use "catch(lua_longjmp*)" which will only catch the internal
> lua errors.
>
>