diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-16 14:08:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-16 14:08:28 -0300 |
commit | c11d374c592d10b8ed649ffe501191039ee18757 (patch) | |
tree | 52a3b434d6197ae36c7f132b370c9807251effe0 /lstate.h | |
parent | 13230c451ba2feaef1c92c391451ee6471b15bb7 (diff) | |
download | lua-c11d374c592d10b8ed649ffe501191039ee18757.tar.gz lua-c11d374c592d10b8ed649ffe501191039ee18757.tar.bz2 lua-c11d374c592d10b8ed649ffe501191039ee18757.zip |
`panic' function configurable via API
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.81 2002/03/26 20:46:10 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.82 2002/04/10 12:11:07 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -112,6 +112,7 @@ typedef struct global_State { | |||
112 | size_t Mbuffsize; /* size of Mbuffer */ | 112 | size_t Mbuffsize; /* size of Mbuffer */ |
113 | lu_mem GCthreshold; | 113 | lu_mem GCthreshold; |
114 | lu_mem nblocks; /* number of `bytes' currently allocated */ | 114 | lu_mem nblocks; /* number of `bytes' currently allocated */ |
115 | lua_CFunction panic; /* to be called in unprotected errors */ | ||
115 | TString *tmname[TM_N]; /* array with tag-method names */ | 116 | TString *tmname[TM_N]; /* array with tag-method names */ |
116 | } global_State; | 117 | } global_State; |
117 | 118 | ||