From 1817dfc3016efc09cfa2c7aee06b22fe1d130652 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 4 Mar 2009 10:32:29 -0300 Subject: initial separation, in CallInfo, of what is relevant only to Lua functions or only to C functions --- lstate.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index def5d7eb..174446dc 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.36 2008/08/26 13:27:42 roberto Exp roberto $ +** $Id: lstate.h,v 2.37 2009/02/18 17:20:56 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -83,7 +83,11 @@ typedef struct CallInfo { const Instruction *savedpc; short nresults; /* expected number of results from this function */ lu_byte callstatus; - int tailcalls; /* number of tail calls lost under this entry */ + union { + struct { /* only for Lua functions */ + int tailcalls; /* number of tail calls lost under this entry */ + } l; + } u; } CallInfo; -- cgit v1.2.3-55-g6feb