diff options
author | David Shah <davey1576@gmail.com> | 2018-06-01 13:57:06 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-02 13:48:28 +0200 |
commit | d62f7abd9561f1ac5085eadb21030211e7cabf4f (patch) | |
tree | 404eca3390275263384eec611d89d5caa905785b /common | |
parent | ee0a5374d8902f8f21be25a21ab20ae23b21c103 (diff) | |
download | nextpnr-d62f7abd9561f1ac5085eadb21030211e7cabf4f.tar.gz nextpnr-d62f7abd9561f1ac5085eadb21030211e7cabf4f.tar.bz2 nextpnr-d62f7abd9561f1ac5085eadb21030211e7cabf4f.zip |
Creating an empty Python module
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/pybindings.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc new file mode 100644 index 00000000..43e474e1 --- /dev/null +++ b/common/pybindings.cc @@ -0,0 +1,15 @@ +#include "design.h" +#include "chip.h" + +#include <boost/python.hpp> +#include <boost/python/suite/indexing/vector_indexing_suite.hpp> +#include <boost/python/suite/indexing/map_indexing_suite.hpp> +using namespace boost::python; + +#define PASTER(x,y) x ## _ ## y +#define EVALUATOR(x,y) PASTER(x,y) +#define MODULE_NAME EVALUATOR(nextpnrpy, ARCHNAME) + +BOOST_PYTHON_MODULE (MODULE_NAME) { + +} |