aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index 66c41e6f..925f958c 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.126 2017/10/31 17:54:35 roberto Exp roberto $ 2** $Id: lobject.h,v 2.127 2017/11/03 12:12:30 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -314,9 +314,23 @@ typedef union StackValue {
314 struct { 314 struct {
315 TValuefields; 315 TValuefields;
316 lu_byte callstatus_; 316 lu_byte callstatus_;
317 unsigned short previous; /* difference to previous 'func' */
318 short nresults; /* expected number of results from this function */ 317 short nresults; /* expected number of results from this function */
318 unsigned short previous; /* difference to previous 'func' */
319 unsigned short framesize; /* stack space available for this function */ 319 unsigned short framesize; /* stack space available for this function */
320 union {
321 unsigned short funcidx; /* called-function index */
322 unsigned short nyield; /* number of values yielded */
323 } u2;
324 union {
325 struct { /* only for Lua functions */
326 const Instruction *savedpc;
327 } l;
328 struct { /* only for C functions */
329 lua_KFunction k; /* continuation in case of yields */
330 ptrdiff_t old_errfunc;
331 lua_KContext ctx; /* context info. in case of yields */
332 } c;
333 } u;
320 } stkci; 334 } stkci;
321} StackValue; 335} StackValue;
322 336