/
githubmirror
/
cpython
Обзор
Документация
Войти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.12.13
Python/importdl.h
35 строк
740 B
Christian Heimes
bpo-47162: Add call trampoline to mitigate bad fpcasts on Emscripten (GH-32189)
30 мар 2022, 22:28
Не верифицирован
30 мар 2022, 22:28
581c443
Код
Авторство
О чём код?
#ifndef Py_IMPORTDL_H #define Py_IMPORTDL_H #ifdef __cplusplus extern "C" { #endif extern const char *_PyImport_DynLoadFiletab[]; extern PyObject *_PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *); typedef PyObject *(*PyModInitFunction)(void); #if defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE) extern PyObject *_PyImport_InitFunc_TrampolineCall(PyModInitFunction func); #else #define _PyImport_InitFunc_TrampolineCall(func) (func)() #endif /* Max length of module suffix searched for -- accommodates "module.slb" */ #define MAXSUFFIXSIZE 12 #ifdef MS_WINDOWS #include <windows.h> typedef FARPROC dl_funcptr; #else typedef void (*dl_funcptr)(void); #endif #ifdef __cplusplus } #endif #endif /* !Py_IMPORTDL_H */