init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
13
.venv/lib/python3.8/site-packages/mypyc/lib-rt/init.c
Normal file
13
.venv/lib/python3.8/site-packages/mypyc/lib-rt/init.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <Python.h>
|
||||
#include "CPy.h"
|
||||
|
||||
struct ExcDummyStruct _CPy_ExcDummyStruct = { PyObject_HEAD_INIT(NULL) };
|
||||
PyObject *_CPy_ExcDummy = (PyObject *)&_CPy_ExcDummyStruct;
|
||||
|
||||
// Because its dynamic linker is more restricted than linux/OS X,
|
||||
// Windows doesn't allow initializing globals with values from
|
||||
// other dynamic libraries. This means we need to initialize
|
||||
// things at load time.
|
||||
void CPy_Init(void) {
|
||||
_CPy_ExcDummyStruct.ob_base.ob_type = &PyBaseObject_Type;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue