diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-18 15:59:18 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-18 15:59:18 -0300 |
| commit | 1d6ebce2969d3bfe406633fd8e284ff187ce00f2 (patch) | |
| tree | 5c961b9e2de11fb58fe44d9c2d80be25d756bf0c /lstate.c | |
| parent | bc3e02a1b7d65c908409549160f567fad14cd238 (diff) | |
| download | lua-1d6ebce2969d3bfe406633fd8e284ff187ce00f2.tar.gz lua-1d6ebce2969d3bfe406633fd8e284ff187ce00f2.tar.bz2 lua-1d6ebce2969d3bfe406633fd8e284ff187ce00f2.zip | |
new function 'lua_version' (so that 'checkversion' can be implemented
in the auxiliary library)
Diffstat (limited to 'lstate.c')
| -rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.c,v 2.54 2009/04/28 19:04:36 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.55 2009/06/01 19:09:26 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 | */ |
| @@ -208,7 +208,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
| 208 | setnilvalue(registry(L)); | 208 | setnilvalue(registry(L)); |
| 209 | luaZ_initbuffer(L, &g->buff); | 209 | luaZ_initbuffer(L, &g->buff); |
| 210 | g->panic = NULL; | 210 | g->panic = NULL; |
| 211 | g->nilobjp = luaO_nilobject; | 211 | g->version = lua_version(NULL); |
| 212 | g->gcstate = GCSpause; | 212 | g->gcstate = GCSpause; |
| 213 | g->rootgc = obj2gco(L); | 213 | g->rootgc = obj2gco(L); |
| 214 | g->sweepstrgc = 0; | 214 | g->sweepstrgc = 0; |
