Elements 6.1.2
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
callback.cpp
Go to the documentation of this file.
1
22#include <pybind11/functional.h>
23#include <pybind11/pybind11.h>
24#include <pybind11/stl.h>
25#include <pyerrors.h>
26
29
30ELEMENTS_API PYBIND11_MODULE(testCallBack, mod) {
31 mod.def("test", &Elements::Examples::testCallBack);
32}
defines the macros to be used for explicit export of the symbols
ELEMENTS_API PYBIND11_MODULE(testCallBack, mod)
Definition: callback.cpp:30
#define ELEMENTS_API
Dummy definitions for the backward compatibility mode.
Definition: Export.h:74
ELEMENTS_API double testCallBack(std::vector< double > x, const std::function< double(std::vector< double >)> &fun)