aboutsummaryrefslogtreecommitdiff
path: root/ltm.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-11-26 11:18:29 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-11-26 11:18:29 -0300
commitf33cc4ddec886ea499d7d41dd60cac5ddc5687db (patch)
tree917dccdbb60f984b21f5f7e1c0c3aa4f4f758ddc /ltm.h
parentd94f7ba3040eb06895d7305014e88157d3bfd1a1 (diff)
downloadlua-f33cc4ddec886ea499d7d41dd60cac5ddc5687db.tar.gz
lua-f33cc4ddec886ea499d7d41dd60cac5ddc5687db.tar.bz2
lua-f33cc4ddec886ea499d7d41dd60cac5ddc5687db.zip
New conceptual model for vararg
Conceptually, all functions get their vararg arguments in a vararg table. The storing of vararg arguments in the stack is always treated as an optimization.
Diffstat (limited to 'ltm.h')
-rw-r--r--ltm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltm.h b/ltm.h
index 86f457eb..07fc8c1c 100644
--- a/ltm.h
+++ b/ltm.h
@@ -98,8 +98,8 @@ LUAI_FUNC int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2,
98LUAI_FUNC void luaT_adjustvarargs (lua_State *L, struct CallInfo *ci, 98LUAI_FUNC void luaT_adjustvarargs (lua_State *L, struct CallInfo *ci,
99 const Proto *p); 99 const Proto *p);
100LUAI_FUNC void luaT_getvararg (CallInfo *ci, StkId ra, TValue *rc); 100LUAI_FUNC void luaT_getvararg (CallInfo *ci, StkId ra, TValue *rc);
101LUAI_FUNC void luaT_getvarargs (lua_State *L, struct CallInfo *ci, 101LUAI_FUNC void luaT_getvarargs (lua_State *L, struct CallInfo *ci, StkId where,
102 StkId where, int wanted); 102 int wanted, int vatab);
103 103
104 104
105#endif 105#endif