Skip to content

Commit

Permalink
Fix macro expansions in critical section docs (pythonGH-127226)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2bb7846)

Co-authored-by: da-woods <[email protected]>
  • Loading branch information
da-woods authored and miss-islington committed Nov 24, 2024
1 parent 24b8630 commit 85bcd7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/c-api/init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2420,7 +2420,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
{
PyCriticalSection2 _py_cs2;
PyCriticalSection_Begin2(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
PyCriticalSection2_Begin(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
In the default build, this macro expands to ``{``.
Expand All @@ -2432,7 +2432,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
In the free-threaded build, this macro expands to::
PyCriticalSection_End2(&_py_cs2);
PyCriticalSection2_End(&_py_cs2);
}
In the default build, this macro expands to ``}``.
Expand Down

0 comments on commit 85bcd7a

Please sign in to comment.