diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-09-01 15:00:04 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-09-01 15:00:04 -0300 |
| commit | 979a663d2a8200591e263c9a7643b7379b2d7ac9 (patch) | |
| tree | 1fc365df94ee8b687ed9065feb768cc03aa61a57 | |
| parent | 22952d89738dab09afc4d23e79677d973356db48 (diff) | |
| download | lua-979a663d2a8200591e263c9a7643b7379b2d7ac9.tar.gz lua-979a663d2a8200591e263c9a7643b7379b2d7ac9.tar.bz2 lua-979a663d2a8200591e263c9a7643b7379b2d7ac9.zip | |
detail (error message from 'coroutine.status')
| -rw-r--r-- | lcorolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lcorolib.c,v 1.5 2013/02/21 13:44:53 roberto Exp roberto $ | 2 | ** $Id: lcorolib.c,v 1.6 2014/05/08 13:52:20 roberto Exp roberto $ |
| 3 | ** Coroutine Library | 3 | ** Coroutine Library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -19,7 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | static lua_State *getco (lua_State *L) { | 20 | static lua_State *getco (lua_State *L) { |
| 21 | lua_State *co = lua_tothread(L, 1); | 21 | lua_State *co = lua_tothread(L, 1); |
| 22 | luaL_argcheck(L, co, 1, "coroutine expected"); | 22 | luaL_argcheck(L, co, 1, "thread expected"); |
| 23 | return co; | 23 | return co; |
| 24 | } | 24 | } |
| 25 | 25 | ||
