diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-18 09:20:01 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-18 09:20:01 -0200 |
commit | 18765d900e759713d9501e6434191c641f508e58 (patch) | |
tree | 74e6dc9094bf75e6c45a6be5ec07d56d322f1eb0 | |
parent | 43013b39cc28e873e18207e8e7259b6b90fed06b (diff) | |
download | lua-18765d900e759713d9501e6434191c641f508e58.tar.gz lua-18765d900e759713d9501e6434191c641f508e58.tar.bz2 lua-18765d900e759713d9501e6434191c641f508e58.zip |
messages
-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.106 2002/11/14 12:01:35 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.107 2002/11/14 15:41:38 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 | */ |
@@ -396,7 +396,7 @@ static int luaB_newproxy (lua_State *L) { | |||
396 | validproxy = lua_toboolean(L, -1); | 396 | validproxy = lua_toboolean(L, -1); |
397 | lua_pop(L, 1); /* remove value */ | 397 | lua_pop(L, 1); /* remove value */ |
398 | } | 398 | } |
399 | luaL_argcheck(L, validproxy, 1, "boolean/proxy expected"); | 399 | luaL_argcheck(L, validproxy, 1, "boolean or proxy expected"); |
400 | lua_getmetatable(L, 1); /* metatable is valid; get it */ | 400 | lua_getmetatable(L, 1); /* metatable is valid; get it */ |
401 | } | 401 | } |
402 | lua_setmetatable(L, 2); | 402 | lua_setmetatable(L, 2); |
@@ -563,7 +563,7 @@ static int auxresume (lua_State *L, lua_State *co, int narg) { | |||
563 | static int luaB_coresume (lua_State *L) { | 563 | static int luaB_coresume (lua_State *L) { |
564 | lua_State *co = lua_tothread(L, 1); | 564 | lua_State *co = lua_tothread(L, 1); |
565 | int r; | 565 | int r; |
566 | luaL_argcheck(L, co, 1, "coroutine/thread expected"); | 566 | luaL_argcheck(L, co, 1, "coroutine expected"); |
567 | r = auxresume(L, co, lua_gettop(L) - 1); | 567 | r = auxresume(L, co, lua_gettop(L) - 1); |
568 | if (r < 0) { | 568 | if (r < 0) { |
569 | lua_pushboolean(L, 0); | 569 | lua_pushboolean(L, 0); |