This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/python/pyload.c

34 lines
599 B
C
Raw Normal View History

2017-06-12 18:00:47 +01:00
#include "py4yap.h"
O_API bool init_python_dll(void);
2017-06-14 12:34:12 +01:00
O_API bool init_python_dll(void) {
2017-06-14 12:34:12 +01:00
do_init_python();
install_pypreds();
return 1;
2017-06-14 12:34:12 +01:00
}
2017-06-12 18:00:47 +01:00
#ifdef _WIN32
#include <windows.h>
int WINAPI win_python(HANDLE, DWORD, LPVOID);
int WINAPI win_python(HANDLE hinst, DWORD reason, LPVOID reserved) {
switch (reason) {
case DLL_PROCESS_ATTACH:
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
return 1;
}
#endif