Go to the source code of this file.
◆ GETSTATE
| #define GETSTATE |
( |
| m | ) |
((struct module_state*)PyModule_GetState(m)) |
◆ INITERROR
| #define INITERROR return NULL |
◆ PYKRITA_INIT()
| PyMODINIT_FUNC PYKRITA_INIT |
( |
| ) |
|
Definition at line 76 of file PykritaModule.cpp.
77{
78 PyObject *pykritaModule = PyModule_Create(&
moduledef);
79
80 if (pykritaModule == NULL)
82
83 PyModule_AddStringConstant(pykritaModule, "__file__", __FILE__);
84
85 return pykritaModule;
86}
static struct PyModuleDef moduledef
References INITERROR, and moduledef.
◆ moduledef
| struct PyModuleDef moduledef |
|
static |
Initial value:= {
PyModuleDef_HEAD_INIT
, "pykrita"
, "The pykrita module"
, -1
, pykritaMethods
, 0
, 0
, 0
, 0
}
Definition at line 62 of file PykritaModule.cpp.
62 {
63 PyModuleDef_HEAD_INIT
64 , "pykrita"
65 , "The pykrita module"
66 , -1
67 , pykritaMethods
68 , 0
69 , 0
70 , 0
71 , 0
72};