lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, 12 Oct 2011 10:07:18 -0400
<AllanPfalzgraf@eaton.com> wrote:

> 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 
> 	EATON
> 
> 	4201 North 27 Street 
> 	Milwaukee, WI 53216 
> 	tel: 414 449-6872 
> 	fax: 414 449-6616 
> 	AllanPfalzgraf@eaton.com 
> 	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.

Attachment: signature.asc
Description: PGP signature