6 long sum(
long a,
long b)
10 PyObject *module_name = PyString_FromString(
"pysum");
11 PyObject *
module = PyImport_Import(module_name);
12 PyObject *sum_function = PyObject_GetAttrString(module,
"PySum");
13 PyObject *sum_args = Py_BuildValue(
"ii", a, b);
14 PyObject *
result = PyObject_CallObject(sum_function, sum_args);
15 sum = PyInt_AsLong(result);
int sum(int *v, unsigned *n)
__attribute__((no_sanitize_address))
This class describes a generic module.