From d764cc552251fc69207c1bb4b34d3a6a5b7020c6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 18 Feb 2014 10:39:37 -0300 Subject: new list 'twups' to allow traversal of upvalues from dead threads (+ fixed some problems with cycles involving those upvalues) --- lfunc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lfunc.h') diff --git a/lfunc.h b/lfunc.h index 9ed51767..3ca72075 100644 --- a/lfunc.h +++ b/lfunc.h @@ -1,5 +1,5 @@ /* -** $Id: lfunc.h,v 2.11 2013/09/11 15:17:00 roberto Exp roberto $ +** $Id: lfunc.h,v 2.12 2014/02/15 13:12:01 roberto Exp roberto $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ @@ -18,6 +18,10 @@ cast(int, sizeof(TValue *)*((n)-1))) +/* test whether thread is in 'twups' list */ +#define isintwups(L) (L->twups != L) + + /* ** Upvalues for Lua closures */ -- cgit v1.2.3-55-g6feb