aboutsummaryrefslogtreecommitdiff
path: root/lcorolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-09-01 15:00:04 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-09-01 15:00:04 -0300
commit979a663d2a8200591e263c9a7643b7379b2d7ac9 (patch)
tree1fc365df94ee8b687ed9065feb768cc03aa61a57 /lcorolib.c
parent22952d89738dab09afc4d23e79677d973356db48 (diff)
downloadlua-979a663d2a8200591e263c9a7643b7379b2d7ac9.tar.gz
lua-979a663d2a8200591e263c9a7643b7379b2d7ac9.tar.bz2
lua-979a663d2a8200591e263c9a7643b7379b2d7ac9.zip
detail (error message from 'coroutine.status')
Diffstat (limited to 'lcorolib.c')
-rw-r--r--lcorolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcorolib.c b/lcorolib.c
index 4bcb7e9a..07ce43f8 100644
--- a/lcorolib.c
+++ b/lcorolib.c
@@ -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
20static lua_State *getco (lua_State *L) { 20static 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