From 6cf85dcc900c71687678bc316164142e76df7385 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 5 May 2005 12:34:03 -0300 Subject: metatables for all types --- lstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 908abf70..6742b4ca 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.19 2005/04/05 13:41:29 roberto Exp roberto $ +** $Id: lstate.h,v 2.20 2005/04/25 19:24:10 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -89,6 +89,7 @@ typedef struct global_State { TValue _registry; struct lua_State *mainthread; UpVal uvhead; /* head of double-linked list of all open upvalues */ + struct Table *mt[NUM_TAGS]; /* metatables for basic types */ TString *tmname[TM_N]; /* array with tag-method names */ } global_State; -- cgit v1.2.3-55-g6feb