From 36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 17 Jun 1999 14:04:03 -0300 Subject: better treatment for arbitrary limits --- lbuiltin.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lbuiltin.c') diff --git a/lbuiltin.c b/lbuiltin.c index 077bcc46..6cf915ca 100644 --- a/lbuiltin.c +++ b/lbuiltin.c @@ -1,5 +1,5 @@ /* -** $Id: lbuiltin.c,v 1.57 1999/05/24 17:53:49 roberto Exp roberto $ +** $Id: lbuiltin.c,v 1.58 1999/05/27 20:21:03 roberto Exp roberto $ ** Built-in functions ** See Copyright Notice in lua.h */ @@ -111,7 +111,10 @@ static void error_message (void) { ** model but changing "fputs" to put the strings at a proper place ** (a console window or a log file, for instance). */ -#define MAXPRINT 40 +#ifndef MAXPRINT +#define MAXPRINT 40 /* arbitrary limit */ +#endif + static void luaB_print (void) { lua_Object args[MAXPRINT]; lua_Object obj; -- cgit v1.2.3-55-g6feb