Skip to content

Commit 8f3ffb4

Browse files
[3.13] gh-121700 Emscripten trampolines not quite right since GH-106219 (GH-121701) (GH-121744)
(cherry picked from commit 3086b86) Co-authored-by: Hood Chatham <[email protected]>
1 parent f672ee2 commit 8f3ffb4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Include/internal/pycore_object.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -747,13 +747,7 @@ PyAPI_FUNC(PyObject*) _PyObject_GetState(PyObject *);
747747
* Third party code unintentionally rely on problematic fpcasts. The call
748748
* trampoline mitigates common occurrences of bad fpcasts on Emscripten.
749749
*/
750-
#if defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE)
751-
#define _PyCFunction_TrampolineCall(meth, self, args) \
752-
_PyCFunctionWithKeywords_TrampolineCall( \
753-
(*(PyCFunctionWithKeywords)(void(*)(void))(meth)), (self), (args), NULL)
754-
extern PyObject* _PyCFunctionWithKeywords_TrampolineCall(
755-
PyCFunctionWithKeywords meth, PyObject *, PyObject *, PyObject *);
756-
#else
750+
#if !(defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE))
757751
#define _PyCFunction_TrampolineCall(meth, self, args) \
758752
(meth)((self), (args))
759753
#define _PyCFunctionWithKeywords_TrampolineCall(meth, self, args, kw) \

0 commit comments

Comments
 (0)