Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 34863:71fd7ee4b7f5 legacy-trunk
Make a handy macro, Py_DEFAULT_RECURSION_LIMIT to allow to define
a default value of recursion limit from build systems. 1000 levels
are still too high for some 64bit systems.
| author | Hye-Shik Chang <hyeshik@gmail.com> |
|---|---|
| date | Mon, 04 Apr 2005 15:49:02 +0000 |
| parents | 683719e04218 |
| children | cdec978b916c |
line wrap: on
line diff
--- a/Python/ceval.c Mon Apr 04 15:21:04 2005 +0000 +++ b/Python/ceval.c Mon Apr 04 15:49:02 2005 +0000 @@ -417,8 +417,11 @@ /* The interpreter's recursion limit */ -static int recursion_limit = 1000; -int _Py_CheckRecursionLimit = 1000; +#ifndef Py_DEFAULT_RECURSION_LIMIT +#define Py_DEFAULT_RECURSION_LIMIT 1000 +#endif +static int recursion_limit = Py_DEFAULT_RECURSION_LIMIT; +int _Py_CheckRecursionLimit = Py_DEFAULT_RECURSION_LIMIT; int Py_GetRecursionLimit(void)
