aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-03-04 10:32:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-03-04 10:32:29 -0300
commit1817dfc3016efc09cfa2c7aee06b22fe1d130652 (patch)
tree3de048bf2b14c6547f9ba15134b6b7fd0455f844 /lstate.h
parent7837e34e567e174e21c7971439e6a4a093addb06 (diff)
downloadlua-1817dfc3016efc09cfa2c7aee06b22fe1d130652.tar.gz
lua-1817dfc3016efc09cfa2c7aee06b22fe1d130652.tar.bz2
lua-1817dfc3016efc09cfa2c7aee06b22fe1d130652.zip
initial separation, in CallInfo, of what is relevant only to Lua
functions or only to C functions
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lstate.h b/lstate.h
index def5d7eb..174446dc 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.36 2008/08/26 13:27:42 roberto Exp roberto $ 2** $Id: lstate.h,v 2.37 2009/02/18 17:20:56 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -83,7 +83,11 @@ typedef struct CallInfo {
83 const Instruction *savedpc; 83 const Instruction *savedpc;
84 short nresults; /* expected number of results from this function */ 84 short nresults; /* expected number of results from this function */
85 lu_byte callstatus; 85 lu_byte callstatus;
86 int tailcalls; /* number of tail calls lost under this entry */ 86 union {
87 struct { /* only for Lua functions */
88 int tailcalls; /* number of tail calls lost under this entry */
89 } l;
90 } u;
87} CallInfo; 91} CallInfo;
88 92
89 93