xo-pyexpression: mvp working

This commit is contained in:
Roland Conybeare 2024-06-14 15:46:40 -04:00
commit 1ead5333b0
8 changed files with 189 additions and 0 deletions

View file

@ -0,0 +1,25 @@
/* @file pyexpression.hpp
*
* automatically generated from src/xo_xo_pyexpression/xo_pyexpression.hpp.in
* see src/xo_xo_pyexpression/CMakeLists.txt
*/
/* python requires module name = library name
* example:
* PYBIND11_MODULE(XO_PYEXPRESSION_MODULE_NAME(), m) { ... }
*/
#define XO_PYEXPRESSION_MODULE_NAME() @SELF_LIB@
/* example:
* py::module_::import(XO_PYEXPRESSION_MODULE_NAME_STR)
*/
#define XO_PYEXPRESSION_MODULE_NAME_STR "@SELF_LIB@"
/* example:
* XO_PYEXPRESSION_IMPORT_MODULE()
* replaces
* py::module_::import("xo_pyexpression")
*/
#define XO_PYEXPRESSION_IMPORT_MODULE() py::module_::import("@SELF_LIB@")
/* end pyexpression.hpp */