diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-04 09:29:32 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-04 09:29:32 -0300 |
commit | 3e52573c722190f4e5f9b996fe8eb7927b65e2a8 (patch) | |
tree | 7ea6680fd983d44d4e71431c85e6f8021a8b0ab1 /ldo.c | |
parent | 84ad1eea8165e29e097bb3acd5b262250b551ac4 (diff) | |
download | lua-3e52573c722190f4e5f9b996fe8eb7927b65e2a8.tar.gz lua-3e52573c722190f4e5f9b996fe8eb7927b65e2a8.tar.bz2 lua-3e52573c722190f4e5f9b996fe8eb7927b65e2a8.zip |
details (error messages)
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.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); |