diff options
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1037,7 +1037,7 @@ LUALIB_API lua_State *luaL_newstate (void) { | |||
1037 | lua_atpanic(L, &panic); | 1037 | lua_atpanic(L, &panic); |
1038 | warnstate = (int *)lua_newuserdatauv(L, sizeof(int), 0); | 1038 | warnstate = (int *)lua_newuserdatauv(L, sizeof(int), 0); |
1039 | luaL_ref(L, LUA_REGISTRYINDEX); /* make sure it won't be collected */ | 1039 | luaL_ref(L, LUA_REGISTRYINDEX); /* make sure it won't be collected */ |
1040 | *warnstate = 1; /* next message starts a new warning */ | 1040 | *warnstate = 0; /* default is warnings off */ |
1041 | lua_setwarnf(L, warnf, warnstate); | 1041 | lua_setwarnf(L, warnf, warnstate); |
1042 | } | 1042 | } |
1043 | return L; | 1043 | return L; |