summaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-04 09:29:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-07-04 09:29:32 -0300
commit3e52573c722190f4e5f9b996fe8eb7927b65e2a8 (patch)
tree7ea6680fd983d44d4e71431c85e6f8021a8b0ab1 /ldo.c
parent84ad1eea8165e29e097bb3acd5b262250b551ac4 (diff)
downloadlua-3e52573c722190f4e5f9b996fe8eb7927b65e2a8.tar.gz
lua-3e52573c722190f4e5f9b996fe8eb7927b65e2a8.tar.bz2
lua-3e52573c722190f4e5f9b996fe8eb7927b65e2a8.zip
details (error messages)
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldo.c b/ldo.c
index a43a6506..5ff1c068 100644
--- a/ldo.c
+++ b/ldo.c
@@ -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);