From 3365a352431a0def0acccec0807751962726c4be Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 16 Dec 1994 13:55:04 -0200 Subject: new constant LUA_NOOBJECT --- inout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inout.c') diff --git a/inout.c b/inout.c index 0f879d60..e782045d 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.13 1994/11/23 14:32:00 roberto Stab $"; +char *rcs_inout="$Id: inout.c,v 2.14 1994/12/13 15:54:21 roberto Exp roberto $"; #include #include @@ -214,7 +214,7 @@ void lua_print (void) { int i=1; lua_Object obj; - while ((obj=lua_getparam (i++)) != 0) + while ((obj=lua_getparam (i++)) != LUA_NOOBJECT) { if (lua_isnumber(obj)) printf("%g\n",lua_getnumber(obj)); else if (lua_isstring(obj)) printf("%s\n",lua_getstring(obj)); @@ -235,7 +235,7 @@ void lua_print (void) void luaI_type (void) { lua_Object o = lua_getparam(1); - if (o == 0) + if (o == LUA_NOOBJECT) lua_error("no parameter to function 'type'"); switch (lua_type(o)) { -- cgit v1.2.3-55-g6feb