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.c | |
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.c')
-rw-r--r-- | lstate.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -365,6 +365,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
365 | L->next = NULL; | 365 | L->next = NULL; |
366 | g->frealloc = f; | 366 | g->frealloc = f; |
367 | g->ud = ud; | 367 | g->ud = ud; |
368 | g->warnf = NULL; | ||
369 | g->ud_warn = NULL; | ||
368 | g->mainthread = L; | 370 | g->mainthread = L; |
369 | g->seed = luai_makeseed(L); | 371 | g->seed = luai_makeseed(L); |
370 | g->gcrunning = 0; /* no GC while building state */ | 372 | g->gcrunning = 0; /* no GC while building state */ |