From 472c560705a29e33fa7b2dba7438b5cbf3d8170f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 3 Nov 2017 15:22:54 -0200 Subject: no more useful fields in CallInfo --- lobject.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 66c41e6f..925f958c 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.126 2017/10/31 17:54:35 roberto Exp roberto $ +** $Id: lobject.h,v 2.127 2017/11/03 12:12:30 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -314,9 +314,23 @@ typedef union StackValue { struct { TValuefields; lu_byte callstatus_; - unsigned short previous; /* difference to previous 'func' */ short nresults; /* expected number of results from this function */ + unsigned short previous; /* difference to previous 'func' */ unsigned short framesize; /* stack space available for this function */ + union { + unsigned short funcidx; /* called-function index */ + unsigned short nyield; /* number of values yielded */ + } u2; + union { + struct { /* only for Lua functions */ + const Instruction *savedpc; + } l; + struct { /* only for C functions */ + lua_KFunction k; /* continuation in case of yields */ + ptrdiff_t old_errfunc; + lua_KContext ctx; /* context info. in case of yields */ + } c; + } u; } stkci; } StackValue; -- cgit v1.2.3-55-g6feb