From c11d374c592d10b8ed649ffe501191039ee18757 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 16 Apr 2002 14:08:28 -0300 Subject: `panic' function configurable via API --- lstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 3bb3fa5d..6c2cfee9 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.81 2002/03/26 20:46:10 roberto Exp roberto $ +** $Id: lstate.h,v 1.82 2002/04/10 12:11:07 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -112,6 +112,7 @@ typedef struct global_State { size_t Mbuffsize; /* size of Mbuffer */ lu_mem GCthreshold; lu_mem nblocks; /* number of `bytes' currently allocated */ + lua_CFunction panic; /* to be called in unprotected errors */ TString *tmname[TM_N]; /* array with tag-method names */ } global_State; -- cgit v1.2.3-55-g6feb