new function 'lua_version' (so that 'checkversion' can be implemented

in the auxiliary library)
This commit is contained in:
Roberto Ierusalimschy
2009-06-18 15:59:18 -03:00
parent bc3e02a1b7
commit 1d6ebce296
4 changed files with 12 additions and 15 deletions

View File

@@ -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;