mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Cosmetics on Py_Get/SetRecursionLimit (for the style guide)
This commit is contained in:
parent
57a5932f13
commit
7bd25be508
1 changed files with 4 additions and 2 deletions
|
@ -302,12 +302,14 @@ Py_MakePendingCalls(void)
|
|||
|
||||
static int recursion_limit = 1000;
|
||||
|
||||
int Py_GetRecursionLimit(void)
|
||||
int
|
||||
Py_GetRecursionLimit(void)
|
||||
{
|
||||
return recursion_limit;
|
||||
}
|
||||
|
||||
void Py_SetRecursionLimit(int new_limit)
|
||||
void
|
||||
Py_SetRecursionLimit(int new_limit)
|
||||
{
|
||||
recursion_limit = new_limit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue