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 /ltm.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 'ltm.h')
-rw-r--r-- | ltm.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.h,v 2.29 2018/01/28 13:39:52 roberto Exp roberto $ | 2 | ** $Id: ltm.h,v 2.30 2018/02/07 15:18:04 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | 10 | ||
11 | #include "lobject.h" | 11 | #include "lobject.h" |
12 | #include "lstate.h" | ||
12 | 13 | ||
13 | 14 | ||
14 | /* | 15 | /* |
@@ -77,9 +78,10 @@ LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1, | |||
77 | LUAI_FUNC int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2, | 78 | LUAI_FUNC int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2, |
78 | int inv, TMS event); | 79 | int inv, TMS event); |
79 | 80 | ||
80 | LUAI_FUNC void luaT_adjustvarargs (lua_State *L, int nfixparams, StkId base); | 81 | LUAI_FUNC void luaT_adjustvarargs (lua_State *L, int nfixparams, |
81 | LUAI_FUNC void luaT_getvarargs (lua_State *L, TValue *t, StkId where, | 82 | struct CallInfo *ci); |
82 | int wanted); | 83 | LUAI_FUNC void luaT_getvarargs (lua_State *L, struct CallInfo *ci, |
84 | StkId where, int wanted); | ||
83 | 85 | ||
84 | 86 | ||
85 | #endif | 87 | #endif |