diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-06-17 14:04:03 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-06-17 14:04:03 -0300 |
| commit | 36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8 (patch) | |
| tree | efa22fb54a0d354249d9f3c9e0a26118d6527bd0 /lbuiltin.c | |
| parent | d4dce57f5ca64c65c7c49eac683b8f807e8dc02d (diff) | |
| download | lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.tar.gz lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.tar.bz2 lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.zip | |
better treatment for arbitrary limits
Diffstat (limited to 'lbuiltin.c')
| -rw-r--r-- | lbuiltin.c | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -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 | |||
| 115 | static void luaB_print (void) { | 118 | static void luaB_print (void) { |
| 116 | lua_Object args[MAXPRINT]; | 119 | lua_Object args[MAXPRINT]; |
| 117 | lua_Object obj; | 120 | lua_Object obj; |
