aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-02-09 13:16:06 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-02-09 13:16:06 -0200
commitb1379936cf35787d3ef3aab82d1607a3e1562eef (patch)
treefe47cb5c35fddab945faf731f0bc175bf5431352 /lstate.h
parent4e0de3a43cc30a83334c272cb7575bf8412bfeae (diff)
downloadlua-b1379936cf35787d3ef3aab82d1607a3e1562eef.tar.gz
lua-b1379936cf35787d3ef3aab82d1607a3e1562eef.tar.bz2
lua-b1379936cf35787d3ef3aab82d1607a3e1562eef.zip
vararg back to '...' (but with another implementation)
new implementation should have zero overhead for non-vararg functions
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index bc4df4e5..2cce8e4f 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.152 2017/11/23 16:35:54 roberto Exp roberto $ 2** $Id: lstate.h,v 2.153 2017/12/19 16:40:17 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*/
@@ -92,6 +92,7 @@ typedef struct CallInfo {
92 struct { /* only for Lua functions */ 92 struct { /* only for Lua functions */
93 const Instruction *savedpc; 93 const Instruction *savedpc;
94 l_signalT trap; 94 l_signalT trap;
95 int nextraargs; /* # of extra arguments in vararg functions */
95 } l; 96 } l;
96 struct { /* only for C functions */ 97 struct { /* only for C functions */
97 lua_KFunction k; /* continuation in case of yields */ 98 lua_KFunction k; /* continuation in case of yields */