diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-12-28 15:42:34 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-12-28 15:42:34 -0200 |
commit | 437a5b07d415e1a74160ddfd804017171d6cc5cb (patch) | |
tree | 861f9a56ae175eaed91c163409c33ab85bee7ff9 /lstate.h | |
parent | ba7da13ec5938f978c37d63aa40a3e340b301f79 (diff) | |
download | lua-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 | ||