diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-09 13:16:06 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-09 13:16:06 -0200 |
commit | b1379936cf35787d3ef3aab82d1607a3e1562eef (patch) | |
tree | fe47cb5c35fddab945faf731f0bc175bf5431352 /lstate.h | |
parent | 4e0de3a43cc30a83334c272cb7575bf8412bfeae (diff) | |
download | lua-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |