Skip to content

Commit 3086b86

Browse files
authored
gh-121700 Emscripten trampolines not quite right since #106219 (GH-121701)
1 parent 04130b2 commit 3086b86

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Include/internal/pycore_object.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -733,13 +733,7 @@ PyAPI_FUNC(PyObject*) _PyObject_GetState(PyObject *);
733733
* Third party code unintentionally rely on problematic fpcasts. The call
734734
* trampoline mitigates common occurrences of bad fpcasts on Emscripten.
735735
*/
736-
#if defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE)
737-
#define _PyCFunction_TrampolineCall(meth, self, args) \
738-
_PyCFunctionWithKeywords_TrampolineCall( \
739-
(*(PyCFunctionWithKeywords)(void(*)(void))(meth)), (self), (args), NULL)
740-
extern PyObject* _PyCFunctionWithKeywords_TrampolineCall(
741-
PyCFunctionWithKeywords meth, PyObject *, PyObject *, PyObject *);
742-
#else
736+
#if !(defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE))
743737
#define _PyCFunction_TrampolineCall(meth, self, args) \
744738
(meth)((self), (args))
745739
#define _PyCFunctionWithKeywords_TrampolineCall(meth, self, args, kw) \

0 commit comments

Comments
 (0)