xo-pyutil: + example (mostly to make LSP happy)
This commit is contained in:
parent
bc601c472c
commit
e169a0d276
5 changed files with 51 additions and 8 deletions
14
example/ex1/pyex1.cpp
Normal file
14
example/ex1/pyex1.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* @file pyex1.cpp */
|
||||
|
||||
#include "pyutilexample.hpp"
|
||||
#include "xo/pyutil/pyutil.hpp"
|
||||
#include <cmath>
|
||||
|
||||
namespace xo {
|
||||
|
||||
PYBIND11_MODULE(XO_PYUTILEXAMPLE_MODULE_NAME(), m) {
|
||||
m.def("sqrt", [](double x) { return ::sqrt(x); });
|
||||
}
|
||||
}
|
||||
|
||||
/* end pyex1.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue