From 3941af53adee868e2cccfb9b85783aba9ac311c1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 20 Jun 2002 17:41:46 -0300 Subject: first implementation of independent global table per function --- lobject.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 8438881f..75610c99 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.134 2002/06/12 14:56:22 roberto Exp roberto $ +** $Id: lobject.h,v 1.135 2002/06/13 13:39:55 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -178,6 +178,7 @@ typedef struct LClosure { lu_byte marked; union Closure *next; /* first four fields must be equal to CClosure!! */ struct Proto *p; + TObject g; /* global table for this closure */ UpVal *upvals[1]; } LClosure; @@ -189,7 +190,7 @@ typedef union Closure { #define iscfunction(o) (ttype(o) == LUA_TFUNCTION && clvalue(o)->c.isC) - +#define isLfunction(o) (ttype(o) == LUA_TFUNCTION && !clvalue(o)->c.isC) /* -- cgit v1.2.3-55-g6feb