From 1d6ebce2969d3bfe406633fd8e284ff187ce00f2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 18 Jun 2009 15:59:18 -0300 Subject: new function 'lua_version' (so that 'checkversion' can be implemented in the auxiliary library) --- lstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index c6ca5b9b..3268209e 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.54 2009/04/28 19:04:36 roberto Exp roberto $ +** $Id: lstate.c,v 2.55 2009/06/01 19:09:26 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -208,7 +208,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { setnilvalue(registry(L)); luaZ_initbuffer(L, &g->buff); g->panic = NULL; - g->nilobjp = luaO_nilobject; + g->version = lua_version(NULL); g->gcstate = GCSpause; g->rootgc = obj2gco(L); g->sweepstrgc = 0; -- cgit v1.2.3-55-g6feb