summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-17 15:44:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-17 15:44:31 -0300
commitbfbf56f15a544633c841666e0e33bd66ef398312 (patch)
tree702d39621392883f7948f31ca5e90d3734e627c7
parent732ef82c72993cad6b5701a50be1c0753e5cc973 (diff)
downloadlua-github-bfbf56f15a544633c841666e0e33bd66ef398312.tar.gz
extra parameter for "call" is "pack" or "plain".
-rw-r--r--inout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inout.c b/inout.c
index feecf9bc..d181b147 100644
--- a/inout.c
+++ b/inout.c
@@ -5,7 +5,7 @@
** Also provides some predefined lua functions.
*/
-char *rcs_inout="$Id: inout.c,v 2.60 1997/06/09 17:28:14 roberto Exp roberto $";
+char *rcs_inout="$Id: inout.c,v 2.61 1997/06/16 16:50:22 roberto Exp roberto $";
#include <stdio.h>
#include <string.h>
@@ -251,7 +251,7 @@ static void luaI_call (void)
{
lua_Object f = lua_getparam(1);
lua_Object arg = lua_getparam(2);
- int withtable = (luaL_opt_string(3, NULL) != NULL);
+ int withtable = (strcmp(luaL_opt_string(3, "plain"), "pack") == 0);
int narg, i;
luaL_arg_check(lua_isfunction(f), 1, "function expected");
luaL_arg_check(lua_istable(arg), 2, "table expected");