diff options
-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.167 2005/02/18 12:40:02 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.168 2005/02/23 17:30:22 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 | */ |
@@ -576,7 +576,7 @@ static int luaB_costatus (lua_State *L) { | |||
576 | } | 576 | } |
577 | 577 | ||
578 | 578 | ||
579 | static int luaB_cocurrent (lua_State *L) { | 579 | static int luaB_corunning (lua_State *L) { |
580 | if (lua_pushthread(L)) | 580 | if (lua_pushthread(L)) |
581 | return 0; /* main thread is not a coroutine */ | 581 | return 0; /* main thread is not a coroutine */ |
582 | else | 582 | else |
@@ -590,7 +590,7 @@ static const luaL_reg co_funcs[] = { | |||
590 | {"resume", luaB_coresume}, | 590 | {"resume", luaB_coresume}, |
591 | {"yield", luaB_yield}, | 591 | {"yield", luaB_yield}, |
592 | {"status", luaB_costatus}, | 592 | {"status", luaB_costatus}, |
593 | {"current", luaB_cocurrent}, | 593 | {"running", luaB_corunning}, |
594 | {NULL, NULL} | 594 | {NULL, NULL} |
595 | }; | 595 | }; |
596 | 596 | ||