[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua error handling and C++
- From: Glenn Maynard <glenn@...>
- Date: Thu, 12 Oct 2006 01:38:02 -0400
On Thu, Oct 12, 2006 at 02:59:34PM +1000, Nick Gammon wrote:
> >How are people dealing with error handling in C++? setjmp doesn't
> >get along with C++ destructors.
>
> Just to help me understand the question, do you mean:
>
> a. A Lua script calls some C++ code which might throw an exception?
>
> or
>
> b. Some C++ code calls a Lua script that might raise an error?
A, and A': C++ calls the Lua C api, which might also throw an error.
--
Glenn Maynard