diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-02-18 14:20:56 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-02-18 14:20:56 -0300 |
| commit | d2ebdc045bae7c8ed0e62729ca455444c076b1bb (patch) | |
| tree | 3237f58be972a4e328380e6ec1f96bbf1b8b70d4 /lstate.c | |
| parent | 81ede6bfcedb9304974110e00a2a4ba301afb4f7 (diff) | |
| download | lua-d2ebdc045bae7c8ed0e62729ca455444c076b1bb.tar.gz lua-d2ebdc045bae7c8ed0e62729ca455444c076b1bb.tar.bz2 lua-d2ebdc045bae7c8ed0e62729ca455444c076b1bb.zip | |
new macro 'lua_checkversion' to check whether core and application are
compatible
Diffstat (limited to 'lstate.c')
| -rw-r--r-- | lstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.c,v 2.47 2008/08/26 13:27:42 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.48 2009/02/17 19:47:58 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 | */ |
| @@ -175,6 +175,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
| 175 | setnilvalue(registry(L)); | 175 | setnilvalue(registry(L)); |
| 176 | luaZ_initbuffer(L, &g->buff); | 176 | luaZ_initbuffer(L, &g->buff); |
| 177 | g->panic = NULL; | 177 | g->panic = NULL; |
| 178 | g->nilobjp = luaO_nilobject; | ||
| 178 | g->gcstate = GCSpause; | 179 | g->gcstate = GCSpause; |
| 179 | g->rootgc = obj2gco(L); | 180 | g->rootgc = obj2gco(L); |
| 180 | g->sweepstrgc = 0; | 181 | g->sweepstrgc = 0; |
