From b1379936cf35787d3ef3aab82d1607a3e1562eef Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 9 Feb 2018 13:16:06 -0200 Subject: vararg back to '...' (but with another implementation) new implementation should have zero overhead for non-vararg functions --- lstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index bc4df4e5..2cce8e4f 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.152 2017/11/23 16:35:54 roberto Exp roberto $ +** $Id: lstate.h,v 2.153 2017/12/19 16:40:17 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -92,6 +92,7 @@ typedef struct CallInfo { struct { /* only for Lua functions */ const Instruction *savedpc; l_signalT trap; + int nextraargs; /* # of extra arguments in vararg functions */ } l; struct { /* only for C functions */ lua_KFunction k; /* continuation in case of yields */ -- cgit v1.2.3-55-g6feb