mirror of https://github.com/rusefi/lua.git
detail
This commit is contained in:
parent
0fa9b16148
commit
37b49aa451
10
ldo.c
10
ldo.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: ldo.c,v 2.32 2005/08/24 16:15:49 roberto Exp roberto $
|
** $Id: ldo.c,v 2.33 2005/09/09 18:16:28 roberto Exp roberto $
|
||||||
** Stack and Call structure of Lua
|
** Stack and Call structure of Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -316,14 +316,12 @@ int luaD_precall (lua_State *L, StkId func, int nresults) {
|
||||||
lua_unlock(L);
|
lua_unlock(L);
|
||||||
n = (*curr_func(L)->c.f)(L); /* do the actual call */
|
n = (*curr_func(L)->c.f)(L); /* do the actual call */
|
||||||
lua_lock(L);
|
lua_lock(L);
|
||||||
if (n >= 0) { /* no yielding? */
|
if (n < 0) /* yielding? */
|
||||||
|
return PCRYIELD;
|
||||||
|
else {
|
||||||
luaD_poscall(L, L->top - n);
|
luaD_poscall(L, L->top - n);
|
||||||
return PCRC;
|
return PCRC;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
ci->nresults = nresults;
|
|
||||||
return PCRYIELD;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue