[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: atpanic chaining?
- From: <AllanPfalzgraf@...>
- Date: Wed, 12 Oct 2011 13:20:27 -0400
Thanks for the clarification. I'll get to work.
From: email@example.com [mailto:firstname.lastname@example.org]
On Behalf Of email@example.com
Sent: Wednesday, October 12, 2011 12:11 PM
Subject: lua-l Digest, Vol 15, Issue 47
Date: Wed, 12 Oct 2011 09:22:34 -0500
From: Rob Hoelz <firstname.lastname@example.org>
Subject: Re: atpanic chaining?
Content-Type: text/plain; charset="us-ascii"
On Wed, 12 Oct 2011 10:07:18 -0400
> Does lua_atpanic() add to the process for a panic condition or just
> replace the process?
> I am writing a set of libraries for communication using several
> protocols. In many situations more than one protocol is in use in a
> single application. Each protocol has its own shutdown procedure that
> should be called for a clean exit in a panic. If each protocol makes
> its own call to lua_atpanic() will all the panic functions be called
> or only the last one to be registered?
> Allan Pfalzgraf
> 4201 North 27 Street
> Milwaukee, WI 53216
> tel: 414 449-6872
> fax: 414 449-6616
> www.Eaton.com <http://www.eaton.com/> <http://www.eaton.com/>
Replaces. You could write a panic function that calls each member of a
list of panic functions, though.