diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-10 14:14:37 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-10 14:14:37 -0300 |
commit | ba484b9eb16dd62a7c3a5400a66eb952b654d3f0 (patch) | |
tree | 31692ddf85265e5a46eab0cd55a0b0757a225e68 /ldebug.c | |
parent | f9d015523ef48266cea37e13717c223c16941b23 (diff) | |
download | lua-ba484b9eb16dd62a7c3a5400a66eb952b654d3f0.tar.gz lua-ba484b9eb16dd62a7c3a5400a66eb952b654d3f0.tar.bz2 lua-ba484b9eb16dd62a7c3a5400a66eb952b654d3f0.zip |
yielding across lua_call (first version)
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.42 2008/10/30 15:39:30 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.43 2009/03/04 13:32:29 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -628,7 +628,7 @@ void luaG_errormsg (lua_State *L) { | |||
628 | setobjs2s(L, L->top, L->top - 1); /* move argument */ | 628 | setobjs2s(L, L->top, L->top - 1); /* move argument */ |
629 | setobjs2s(L, L->top - 1, errfunc); /* push function */ | 629 | setobjs2s(L, L->top - 1, errfunc); /* push function */ |
630 | incr_top(L); | 630 | incr_top(L); |
631 | luaD_call(L, L->top - 2, 1); /* call it */ | 631 | luaD_call(L, L->top - 2, 1, 0); /* call it */ |
632 | } | 632 | } |
633 | luaD_throw(L, LUA_ERRRUN); | 633 | luaD_throw(L, LUA_ERRRUN); |
634 | } | 634 | } |