in 'luaD_call', use two functions instead of one with fixed boolean

argument
This commit is contained in:
Roberto Ierusalimschy
2015-11-02 16:48:07 -02:00
parent cd73f3ccc5
commit ff1289a361
6 changed files with 26 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ldebug.c,v 2.115 2015/05/22 17:45:56 roberto Exp roberto $
** $Id: ldebug.c,v 2.116 2015/10/22 14:40:47 roberto Exp roberto $
** Debug Interface
** See Copyright Notice in lua.h
*/
@@ -618,7 +618,7 @@ l_noret luaG_errormsg (lua_State *L) {
setobjs2s(L, L->top, L->top - 1); /* move argument */
setobjs2s(L, L->top - 1, errfunc); /* push function */
L->top++; /* assume EXTRA_STACK */
luaD_call(L, L->top - 2, 1, 0); /* call it */
luaD_callnoyield(L, L->top - 2, 1); /* call it */
}
luaD_throw(L, LUA_ERRRUN);
}