'nresults' in CallInfo now refers to number of results that the current

function returns (and not what it expects from a call)
This commit is contained in:
Roberto Ierusalimschy
2010-09-30 14:21:31 -03:00
parent b22356e5c5
commit ffff9a49da
2 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 2.65 2010/05/03 17:39:48 roberto Exp roberto $
** $Id: lstate.h,v 2.66 2010/09/03 14:14:01 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -72,7 +72,7 @@ typedef struct CallInfo {
StkId func; /* function index in the stack */
StkId top; /* top for this function */
struct CallInfo *previous, *next; /* dynamic call link */
short nresults; /* expected number of results from a call */
short nresults; /* expected number of results from this function */
lu_byte callstatus;
union {
struct { /* only for Lua functions */