OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
PyTestLibrary.cpp
Go to the documentation of this file.
1#include <Python.h>
2#include <structmember.h>
3
4#include <string>
6
7std::string module_docstring =
8 "mylibrary module does nothing";
9
10PyMODINIT_FUNC initmy_library(void) {
11 PyObject* module = Py_InitModule3("my_library", NULL, module_docstring.c_str());
12 if (module == NULL)
13 return;
14}
15
PyMODINIT_FUNC initmy_library(void)
std::string module_docstring