summaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-08 14:16:46 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-08 14:16:46 -0300
commit055104f5b6a0264974c5d9f2a55499420a1c9c2a (patch)
tree0326d843489810878c8e5c80c4c9f6a29261fbce /lstate.h
parent28aa733c15e814eb5708c58063ea1fb636ec7876 (diff)
downloadlua-055104f5b6a0264974c5d9f2a55499420a1c9c2a.tar.gz
lua-055104f5b6a0264974c5d9f2a55499420a1c9c2a.tar.bz2
lua-055104f5b6a0264974c5d9f2a55499420a1c9c2a.zip
keep memory-error message in the global state, so that its use
does not depend on Lua internalizing strings to avoid a string creation on memory errors
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index 1c70aca8..17cf2e06 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.59 2010/03/29 17:43:14 roberto Exp roberto $ 2** $Id: lstate.h,v 2.60 2010/04/05 16:35:37 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*/
@@ -142,6 +142,7 @@ typedef struct global_State {
142 lua_CFunction panic; /* to be called in unprotected errors */ 142 lua_CFunction panic; /* to be called in unprotected errors */
143 struct lua_State *mainthread; 143 struct lua_State *mainthread;
144 const lua_Number *version; /* pointer to version number */ 144 const lua_Number *version; /* pointer to version number */
145 TString *memerrmsg; /* memory-error message */
145 TString *tmname[TM_N]; /* array with tag-method names */ 146 TString *tmname[TM_N]; /* array with tag-method names */
146 struct Table *mt[NUM_TAGS]; /* metatables for basic types */ 147 struct Table *mt[NUM_TAGS]; /* metatables for basic types */
147} global_State; 148} global_State;