blob: 057d4b6a066e7354acf7aef384569e54508ac1f5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- Python/ceval.c.orig Wed Nov 24 03:06:08 2004
+++ Python/ceval.c Wed Dec 1 22:29:37 2004
@@ -414,8 +414,11 @@
/* The interpreter's recursion limit */
-static int recursion_limit = 1000;
-int _Py_CheckRecursionLimit = 1000;
+#ifndef PYTHON_DEFAULT_RECURSION_LIMIT
+#define PYTHON_DEFAULT_RECURSION_LIMIT 1000
+#endif
+static int recursion_limit = PYTHON_DEFAULT_RECURSION_LIMIT;
+int _Py_CheckRecursionLimit = PYTHON_DEFAULT_RECURSION_LIMIT;
int
Py_GetRecursionLimit(void)
|