Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3086b86

Browse files
authored
gh-121700 Emscripten trampolines not quite right since#106219 (GH-121701)
1 parent04130b2 commit3086b86

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
@@ -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-
externPyObject*_PyCFunctionWithKeywords_TrampolineCall(
741-
PyCFunctionWithKeywordsmeth,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)

[8]ページ先頭

©2009-2025 Movatter.jp