detail (error message from 'coroutine.status')
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lcorolib.c,v 1.5 2013/02/21 13:44:53 roberto Exp roberto $
|
** $Id: lcorolib.c,v 1.6 2014/05/08 13:52:20 roberto Exp roberto $
|
||||||
** Coroutine Library
|
** Coroutine Library
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
static lua_State *getco (lua_State *L) {
|
static lua_State *getco (lua_State *L) {
|
||||||
lua_State *co = lua_tothread(L, 1);
|
lua_State *co = lua_tothread(L, 1);
|
||||||
luaL_argcheck(L, co, 1, "coroutine expected");
|
luaL_argcheck(L, co, 1, "thread expected");
|
||||||
return co;
|
return co;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user