aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-03 15:22:54 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-03 15:22:54 -0200
commit472c560705a29e33fa7b2dba7438b5cbf3d8170f (patch)
tree69949a72715c8f94fe4da73350eb15d8139fcb5f /lobject.h
parent54eb35a8aa0f60265cf1b4764beabe1199d66f42 (diff)
downloadlua-472c560705a29e33fa7b2dba7438b5cbf3d8170f.tar.gz
lua-472c560705a29e33fa7b2dba7438b5cbf3d8170f.tar.bz2
lua-472c560705a29e33fa7b2dba7438b5cbf3d8170f.zip
no more useful fields in CallInfo
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