Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb270e9

Browse files
[3.13] Fix macro expansions in critical section docs (GH-127226) (#127229)
(cherry picked from commit 2bb7846) Co-authored-by: da-woods <[email protected]>
1 parent 24b8630 commit cb270e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/c-api/init.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24202420
24212421
{
24222422
PyCriticalSection2 _py_cs2;
2423-
PyCriticalSection_Begin2(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
2423+
PyCriticalSection2_Begin(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
24242424
24252425
In the default build, this macro expands to ``{``.
24262426
@@ -2432,7 +2432,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24322432
24332433
In the free-threaded build, this macro expands to::
24342434
2435-
PyCriticalSection_End2(&_py_cs2);
2435+
PyCriticalSection2_End(&_py_cs2);
24362436
}
24372437
24382438
In the default build, this macro expands to ``}``.

0 commit comments

Comments
 (0)