diff options
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.145 2002/11/18 15:24:27 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.146 2002/11/25 17:47:13 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -784,4 +784,13 @@ int luaB_opentests (lua_State *L) { | |||
| 784 | return 0; | 784 | return 0; |
| 785 | } | 785 | } |
| 786 | 786 | ||
| 787 | |||
| 788 | #undef main | ||
| 789 | int main (int argc, char *argv[]) { | ||
| 790 | char *limit = getenv("MEMLIMIT"); | ||
| 791 | if (limit) | ||
| 792 | memdebug_memlimit = strtoul(limit, NULL, 10); | ||
| 793 | l_main(argc, argv); | ||
| 794 | } | ||
| 795 | |||
| 787 | #endif | 796 | #endif |
