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.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 6751c0a1..783e51cf 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.43 2009/04/17 22:00:01 roberto Exp roberto $ +** $Id: lstate.h,v 2.44 2009/06/01 19:09:26 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -148,9 +148,9 @@ typedef struct global_State { TValue l_registry; struct lua_State *mainthread; UpVal uvhead; /* head of double-linked list of all open upvalues */ + const lua_Number *version; /* pointer to version number */ struct Table *mt[NUM_TAGS]; /* metatables for basic types */ TString *tmname[TM_N]; /* array with tag-method names */ - const TValue *nilobjp; /* pointer to nil object (to check consistency) */ } global_State; -- cgit v1.2.3-55-g6feb