diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-26 13:37:23 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-26 13:37:23 -0300 |
commit | 88607acc2c41c2bace172b78012d2ce9abf05766 (patch) | |
tree | 6283e23fe6acce3fb68e0abeb2410e7cdf816f90 /ldo.c | |
parent | 6de93e29321bedb4f9ebd14bdcc04b942b0aad57 (diff) | |
download | lua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.gz lua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.bz2 lua-88607acc2c41c2bace172b78012d2ce9abf05766.zip |
details
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.182 2002/06/18 17:42:52 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.183 2002/06/20 20:41:46 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -283,7 +283,7 @@ void luaD_call (lua_State *L, StkId func, int nResults) { | |||
283 | firstResult = luaV_execute(L); /* call it */ | 283 | firstResult = luaV_execute(L); /* call it */ |
284 | if (firstResult == NULL) { | 284 | if (firstResult == NULL) { |
285 | luaD_poscall(L, 0, L->top); | 285 | luaD_poscall(L, 0, L->top); |
286 | luaG_runerror(L, "attempt to `yield' across tag-method/C-call boundary"); | 286 | luaG_runerror(L, "attempt to yield across tag-method/C-call boundary"); |
287 | } | 287 | } |
288 | } | 288 | } |
289 | luaD_poscall(L, nResults, firstResult); | 289 | luaD_poscall(L, nResults, firstResult); |
@@ -357,7 +357,7 @@ LUA_API int lua_yield (lua_State *L, int nresults) { | |||
357 | lua_lock(L); | 357 | lua_lock(L); |
358 | ci = L->ci; | 358 | ci = L->ci; |
359 | if (ci_func(ci-1)->c.isC) | 359 | if (ci_func(ci-1)->c.isC) |
360 | luaG_runerror(L, "cannot `yield' a C function"); | 360 | luaG_runerror(L, "cannot yield a C function"); |
361 | ci->yield_results = nresults; | 361 | ci->yield_results = nresults; |
362 | lua_unlock(L); | 362 | lua_unlock(L); |
363 | return -1; | 363 | return -1; |