@@ -1659,14 +1659,14 @@ void uwsgi_python_suspend(struct wsgi_request *wsgi_req) {
1659
1659
PyGILState_Release (pgst );
1660
1660
1661
1661
if (wsgi_req ) {
1662
- #ifdef UWSGI_PY312
1662
+ #ifdef UWSGI_PY313
1663
1663
up .current_c_recursion_remaining [wsgi_req -> async_id ] = tstate -> c_recursion_remaining ;
1664
1664
up .current_py_recursion_remaining [wsgi_req -> async_id ] = tstate -> py_recursion_remaining ;
1665
- #ifdef UWSGI_PY313
1666
1665
up .current_frame [wsgi_req -> async_id ] = tstate -> current_frame ;
1667
- #else
1666
+ #elif defined UWSGI_PY312
1667
+ up .current_c_recursion_remaining [wsgi_req -> async_id ] = tstate -> c_recursion_remaining ;
1668
+ up .current_py_recursion_remaining [wsgi_req -> async_id ] = tstate -> py_recursion_remaining ;
1668
1669
up .current_frame [wsgi_req -> async_id ] = tstate -> cframe ;
1669
- #endif
1670
1670
#elif defined UWSGI_PY311
1671
1671
up .current_recursion_remaining [wsgi_req -> async_id ] = tstate -> recursion_remaining ;
1672
1672
up .current_frame [wsgi_req -> async_id ] = tstate -> cframe ;
@@ -1676,14 +1676,14 @@ void uwsgi_python_suspend(struct wsgi_request *wsgi_req) {
1676
1676
#endif
1677
1677
}
1678
1678
else {
1679
- #ifdef UWSGI_PY312
1679
+ #ifdef UWSGI_PY313
1680
1680
up .current_main_c_recursion_remaining = tstate -> c_recursion_remaining ;
1681
1681
up .current_main_py_recursion_remaining = tstate -> py_recursion_remaining ;
1682
- #ifdef UWSGI_PY313
1683
1682
up .current_main_frame = tstate -> current_frame ;
1684
- #else
1683
+ #elif defined UWSGI_PY312
1684
+ up .current_main_c_recursion_remaining = tstate -> c_recursion_remaining ;
1685
+ up .current_main_py_recursion_remaining = tstate -> py_recursion_remaining ;
1685
1686
up .current_main_frame = tstate -> cframe ;
1686
- #endif
1687
1687
#elif defined UWSGI_PY311
1688
1688
up .current_main_recursion_remaining = tstate -> recursion_remaining ;
1689
1689
up .current_main_frame = tstate -> cframe ;
@@ -1920,14 +1920,14 @@ void uwsgi_python_resume(struct wsgi_request *wsgi_req) {
1920
1920
PyGILState_Release (pgst );
1921
1921
1922
1922
if (wsgi_req ) {
1923
- #ifdef UWSGI_PY312
1923
+ #ifdef UWSGI_PY313
1924
1924
tstate -> c_recursion_remaining = up .current_c_recursion_remaining [wsgi_req -> async_id ];
1925
1925
tstate -> py_recursion_remaining = up .current_py_recursion_remaining [wsgi_req -> async_id ];
1926
- #ifdef UWSGI_PY313
1927
1926
tstate -> current_frame = up .current_frame [wsgi_req -> async_id ];
1928
- #else
1927
+ #elif defined UWSGI_PY312
1928
+ tstate -> c_recursion_remaining = up .current_c_recursion_remaining [wsgi_req -> async_id ];
1929
+ tstate -> py_recursion_remaining = up .current_py_recursion_remaining [wsgi_req -> async_id ];
1929
1930
tstate -> cframe = up .current_frame [wsgi_req -> async_id ];
1930
- #endif
1931
1931
#elif defined UWSGI_PY311
1932
1932
tstate -> recursion_remaining = up .current_recursion_remaining [wsgi_req -> async_id ];
1933
1933
tstate -> cframe = up .current_frame [wsgi_req -> async_id ];
@@ -1937,14 +1937,14 @@ void uwsgi_python_resume(struct wsgi_request *wsgi_req) {
1937
1937
#endif
1938
1938
}
1939
1939
else {
1940
- #ifdef UWSGI_PY312
1940
+ #ifdef UWSGI_PY313
1941
1941
tstate -> c_recursion_remaining = up .current_main_c_recursion_remaining ;
1942
1942
tstate -> py_recursion_remaining = up .current_main_py_recursion_remaining ;
1943
- #ifdef UWSGI_PY313
1944
1943
tstate -> current_frame = up .current_main_frame ;
1945
- #else
1944
+ #elif defined UWSGI_PY312
1945
+ tstate -> c_recursion_remaining = up .current_main_c_recursion_remaining ;
1946
+ tstate -> py_recursion_remaining = up .current_main_py_recursion_remaining ;
1946
1947
tstate -> cframe = up .current_main_frame ;
1947
- #endif
1948
1948
#elif defined UWSGI_PY311
1949
1949
tstate -> recursion_remaining = up .current_main_recursion_remaining ;
1950
1950
tstate -> cframe = up .current_main_frame ;
0 commit comments