diff options
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.162 2004/12/07 18:31:34 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.163 2004/12/13 12:15:11 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -469,7 +469,7 @@ static int auxresume (lua_State *L, lua_State *co, int narg) { | |||
469 | int status; | 469 | int status; |
470 | if (!lua_checkstack(co, narg)) | 470 | if (!lua_checkstack(co, narg)) |
471 | luaL_error(L, "too many arguments to resume"); | 471 | luaL_error(L, "too many arguments to resume"); |
472 | if (lua_threadstatus(co) == 0 && lua_gettop(co) == 0) { | 472 | if (lua_status(co) == 0 && lua_gettop(co) == 0) { |
473 | lua_pushliteral(L, "cannot resume dead coroutine"); | 473 | lua_pushliteral(L, "cannot resume dead coroutine"); |
474 | return -1; /* error flag */ | 474 | return -1; /* error flag */ |
475 | } | 475 | } |
@@ -549,7 +549,7 @@ static int luaB_costatus (lua_State *L) { | |||
549 | luaL_argcheck(L, co, 1, "coroutine expected"); | 549 | luaL_argcheck(L, co, 1, "coroutine expected"); |
550 | if (L == co) lua_pushliteral(L, "running"); | 550 | if (L == co) lua_pushliteral(L, "running"); |
551 | else { | 551 | else { |
552 | switch (lua_threadstatus(co)) { | 552 | switch (lua_status(co)) { |
553 | case LUA_YIELD: | 553 | case LUA_YIELD: |
554 | lua_pushliteral(L, "suspended"); | 554 | lua_pushliteral(L, "suspended"); |
555 | break; | 555 | break; |