Add 'xo-pyunit/' from commit '4d0e708ea4'
git-subtree-dir: xo-pyunit git-subtree-mainline:cb2ce5a5b8git-subtree-split:4d0e708ea4
This commit is contained in:
commit
06314a84aa
7 changed files with 310 additions and 0 deletions
25
xo-pyunit/src/pyunit/pyunit.hpp.in
Normal file
25
xo-pyunit/src/pyunit/pyunit.hpp.in
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* @file pyunit.hpp
|
||||
*
|
||||
* automatically generated from src/xo_pyunit/pyunit.hpp.in
|
||||
* see src/xo_pyunit/CMakeLists.txt
|
||||
*/
|
||||
|
||||
/* python requires module name = library name
|
||||
* example:
|
||||
* PYBIND11_MODULE(PYUNIT_MODULE_NAME(), m) { ... }
|
||||
*/
|
||||
#define PYUNIT_MODULE_NAME() @SELF_LIB@
|
||||
|
||||
/* example:
|
||||
* py::module_::import(PYUNIT_MODULE_NAME_STR)
|
||||
*/
|
||||
#define PYUNIT_MODULE_NAME_STR "@SELF_LIB@"
|
||||
|
||||
/* example:
|
||||
* PYUNIT_IMPORT_MODULE()
|
||||
* replaces
|
||||
* py::module_::import("pyunit")
|
||||
*/
|
||||
#define PYUNIT_IMPORT_MODULE() py::module_::import("@SELF_LIB@")
|
||||
|
||||
/* end pyunit.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue