diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-08-26 10:27:42 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-08-26 10:27:42 -0300 |
| commit | f94cd2201c3a8d341db448f2719dfb0ae4338adf (patch) | |
| tree | 34f49a3e607098699b1f9e3af9358c062ec8425e /ltests.c | |
| parent | fdbb243ff9980870c54676f3b2597b110ab82864 (diff) | |
| download | lua-f94cd2201c3a8d341db448f2719dfb0ae4338adf.tar.gz lua-f94cd2201c3a8d341db448f2719dfb0ae4338adf.tar.bz2 lua-f94cd2201c3a8d341db448f2719dfb0ae4338adf.zip | |
better control of call status through CallInfo
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 2.53 2008/06/26 19:42:45 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.54 2008/08/13 17:02:12 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -349,7 +349,7 @@ printf(">>> %d %s %02x\n", g->gcstate, luaT_typenames[gch(o)->tt], gch(o)->mar | |||
| 349 | 349 | ||
| 350 | 350 | ||
| 351 | int lua_checkpc (lua_State *L, pCallInfo ci) { | 351 | int lua_checkpc (lua_State *L, pCallInfo ci) { |
| 352 | if (ci == L->base_ci || !f_isLua(ci)) return 1; | 352 | if (ci == L->base_ci || !isLua(ci)) return 1; |
| 353 | else { | 353 | else { |
| 354 | Proto *p = ci_func(ci)->l.p; | 354 | Proto *p = ci_func(ci)->l.p; |
| 355 | if (ci < L->ci) | 355 | if (ci < L->ci) |
