mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
yielding across lua_call (first version)
This commit is contained in:
parent
f9d015523e
commit
ba484b9eb1
13 changed files with 170 additions and 111 deletions
4
ldebug.c
4
ldebug.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ldebug.c,v 2.42 2008/10/30 15:39:30 roberto Exp roberto $
|
||||
** $Id: ldebug.c,v 2.43 2009/03/04 13:32:29 roberto Exp roberto $
|
||||
** Debug Interface
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -628,7 +628,7 @@ void luaG_errormsg (lua_State *L) {
|
|||
setobjs2s(L, L->top, L->top - 1); /* move argument */
|
||||
setobjs2s(L, L->top - 1, errfunc); /* push function */
|
||||
incr_top(L);
|
||||
luaD_call(L, L->top - 2, 1); /* call it */
|
||||
luaD_call(L, L->top - 2, 1, 0); /* call it */
|
||||
}
|
||||
luaD_throw(L, LUA_ERRRUN);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue