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 64 of file PykritaModule.cpp.
65{
66 PyObject *pykritaModule = PyModule_Create(&
moduledef);
67
68 if (pykritaModule == NULL)
70
71 PyModule_AddStringConstant(pykritaModule, "__file__", __FILE__);
72
73 return pykritaModule;
74}
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 50 of file PykritaModule.cpp.
50 {
51 PyModuleDef_HEAD_INIT
52 , "pykrita"
53 , "The pykrita module"
54 , -1
55 , pykritaMethods
56 , 0
57 , 0
58 , 0
59 , 0
60};