aboutsummaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-06-17 14:04:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-06-17 14:04:03 -0300
commit36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8 (patch)
treeefa22fb54a0d354249d9f3c9e0a26118d6527bd0 /lbuiltin.c
parentd4dce57f5ca64c65c7c49eac683b8f807e8dc02d (diff)
downloadlua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.tar.gz
lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.tar.bz2
lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.zip
better treatment for arbitrary limits
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index 077bcc46..6cf915ca 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuiltin.c,v 1.57 1999/05/24 17:53:49 roberto Exp roberto $ 2** $Id: lbuiltin.c,v 1.58 1999/05/27 20:21:03 roberto Exp roberto $
3** Built-in functions 3** Built-in functions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -111,7 +111,10 @@ static void error_message (void) {
111** model but changing "fputs" to put the strings at a proper place 111** model but changing "fputs" to put the strings at a proper place
112** (a console window or a log file, for instance). 112** (a console window or a log file, for instance).
113*/ 113*/
114#define MAXPRINT 40 114#ifndef MAXPRINT
115#define MAXPRINT 40 /* arbitrary limit */
116#endif
117
115static void luaB_print (void) { 118static void luaB_print (void) {
116 lua_Object args[MAXPRINT]; 119 lua_Object args[MAXPRINT];
117 lua_Object obj; 120 lua_Object obj;