xo-pyjit: initial commit
This commit is contained in:
commit
3cc8e73ab4
8 changed files with 171 additions and 0 deletions
25
src/pyjit/pyjit.hpp.in
Normal file
25
src/pyjit/pyjit.hpp.in
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* @file pyjit.hpp
|
||||
*
|
||||
* automatically generated from src/xo_pyjit/pyjit.hpp.in
|
||||
* see src/xo_pyjit/CMakeLists.txt
|
||||
*/
|
||||
|
||||
/* python requires module name = library name
|
||||
* example:
|
||||
* PYBIND11_MODULE(XO_PYJIT_MODULE_NAME(), m) { ... }
|
||||
*/
|
||||
#define XO_PYJIT_MODULE_NAME() @SELF_LIB@
|
||||
|
||||
/* example:
|
||||
* py::module_::import(XO_PYJIT_MODULE_NAME_STR)
|
||||
*/
|
||||
#define XO_PYJIT_MODULE_NAME_STR "@SELF_LIB@"
|
||||
|
||||
/* example:
|
||||
* XO_PYJIT_IMPORT_MODULE()
|
||||
* replaces
|
||||
* py::module_::import("pyjit")
|
||||
*/
|
||||
#define XO_PYJIT_IMPORT_MODULE() py::module_::import("@SELF_LIB@")
|
||||
|
||||
/* end pyjit.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue