diff options
author | Hood Chatham <roberthoodchatham@gmail.com> | 2024-07-14 11:24:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-14 11:24:09 +0200 |
commit | 3086b86cfda829e23a71569908edbfbcdc16327f (patch) | |
tree | 5905429917e820d9cbcb5c571accee0b7c4f7a17 | |
parent | 04130b290b545e64625c07dc8fa2709d17e70880 (diff) | |
download | cpython-3086b86cfda829e23a71569908edbfbcdc16327f.tar.gz cpython-3086b86cfda829e23a71569908edbfbcdc16327f.zip |
gh-121700 Emscripten trampolines not quite right since #106219 (GH-121701)
-rw-r--r-- | Include/internal/pycore_object.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h index fa789611133..d385b20b0e9 100644 --- a/Include/internal/pycore_object.h +++ b/Include/internal/pycore_object.h @@ -733,13 +733,7 @@ PyAPI_FUNC(PyObject*) _PyObject_GetState(PyObject *); * Third party code unintentionally rely on problematic fpcasts. The call * trampoline mitigates common occurrences of bad fpcasts on Emscripten. */ -#if defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE) -#define _PyCFunction_TrampolineCall(meth, self, args) \ - _PyCFunctionWithKeywords_TrampolineCall( \ - (*(PyCFunctionWithKeywords)(void(*)(void))(meth)), (self), (args), NULL) -extern PyObject* _PyCFunctionWithKeywords_TrampolineCall( - PyCFunctionWithKeywords meth, PyObject *, PyObject *, PyObject *); -#else +#if !(defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE)) #define _PyCFunction_TrampolineCall(meth, self, args) \ (meth)((self), (args)) #define _PyCFunctionWithKeywords_TrampolineCall(meth, self, args, kw) \ |