OPAL (Object Oriented Parallel Accelerator Library)
2022.1
OPAL
src
src
_PyOpal
PyTestLibrary.cpp
Go to the documentation of this file.
1
#include <Python.h>
2
#include <structmember.h>
3
4
#include <string>
5
#include "
PyOpal/PyTestLibrary.h
"
6
7
std::string
module_docstring
=
8
"mylibrary module does nothing"
;
9
10
PyMODINIT_FUNC
initmy_library
(
void
) {
11
PyObject* module = Py_InitModule3(
"my_library"
, NULL,
module_docstring
.c_str());
12
if
(module == NULL)
13
return
;
14
}
15
PyTestLibrary.h
initmy_library
PyMODINIT_FUNC initmy_library(void)
Definition:
PyTestLibrary.cpp:10
module_docstring
std::string module_docstring
Definition:
PyTestLibrary.cpp:7
Generated on Thu Oct 20 2022 17:40:09 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.3