Debian Codegraph @

tests/integration/testsimple/testsimple.c

raw
1 #include <Python.h>
2
3 static PyObject *
4 run(PyObject *self, PyObject *args)
5 {
6 (void)self;
7 (void)args;
8 return PyLong_FromLong(0);
9 }
10
11 /* Module initialization */
12 PyMODINIT_FUNC PyInit_testsimple(void)
13 {
14 static PyMethodDef module_methods[] = {
15 {"run", (PyCFunction)run, METH_NOARGS, "run."},
16 {NULL} /* Sentinel */
17 };
18 static struct PyModuleDef moduledef = {
19 PyModuleDef_HEAD_INIT,
20 "testsimple",
21 "testsimple module",
22 -1,
23 module_methods,
24 };
25 return PyModule_Create(&moduledef);
26 }