diff options
-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.183 2002/06/20 20:41:46 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.184 2002/06/26 16:37:23 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 | */ |
@@ -339,9 +339,9 @@ LUA_API int lua_resume (lua_State *L, lua_State *co) { | |||
339 | lua_lock(L); | 339 | lua_lock(L); |
340 | ci = co->ci; | 340 | ci = co->ci; |
341 | if (ci == co->base_ci) /* no activation record? ?? */ | 341 | if (ci == co->base_ci) /* no activation record? ?? */ |
342 | luaG_runerror(L, "thread is dead - cannot be resumed"); | 342 | luaG_runerror(L, "cannot resume dead thread"); |
343 | if (co->errorJmp != NULL) /* ?? */ | 343 | if (co->errorJmp != NULL) /* ?? */ |
344 | luaG_runerror(L, "thread is active - cannot be resumed"); | 344 | luaG_runerror(L, "cannot resume active thread"); |
345 | status = luaD_runprotected(co, resume, ud.err); | 345 | status = luaD_runprotected(co, resume, ud.err); |
346 | if (status == 0) | 346 | if (status == 0) |
347 | move_results(L, co->top - ud.numres, co->top); | 347 | move_results(L, co->top - ud.numres, co->top); |