From d2ebdc045bae7c8ed0e62729ca455444c076b1bb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 18 Feb 2009 14:20:56 -0300 Subject: new macro 'lua_checkversion' to check whether core and application are compatible --- lstate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index be7eed91..e1a3237b 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.47 2008/08/26 13:27:42 roberto Exp roberto $ +** $Id: lstate.c,v 2.48 2009/02/17 19:47:58 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -175,6 +175,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->gcstate = GCSpause; g->rootgc = obj2gco(L); g->sweepstrgc = 0; -- cgit v1.2.3-55-g6feb