summaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-28 15:42:34 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-28 15:42:34 -0200
commit437a5b07d415e1a74160ddfd804017171d6cc5cb (patch)
tree861f9a56ae175eaed91c163409c33ab85bee7ff9 /lstate.h
parentba7da13ec5938f978c37d63aa40a3e340b301f79 (diff)
downloadlua-437a5b07d415e1a74160ddfd804017171d6cc5cb.tar.gz
lua-437a5b07d415e1a74160ddfd804017171d6cc5cb.tar.bz2
lua-437a5b07d415e1a74160ddfd804017171d6cc5cb.zip
Added a warning system to Lua
The warning system is just a way for Lua to emit warnings, messages to the programmer that do not interfere with the running program.
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lstate.h b/lstate.h
index b069b390..f3793256 100644
--- a/lstate.h
+++ b/lstate.h
@@ -231,6 +231,8 @@ typedef struct global_State {
231 TString *tmname[TM_N]; /* array with tag-method names */ 231 TString *tmname[TM_N]; /* array with tag-method names */
232 struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */ 232 struct Table *mt[LUA_NUMTAGS]; /* metatables for basic types */
233 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ 233 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */
234 lua_WarnFunction warnf; /* warning function */
235 void *ud_warn; /* auxiliary data to 'warnf' */
234} global_State; 236} global_State;
235 237
236 238