diff options
author | David Shah <dave@ds0.me> | 2019-03-31 17:28:45 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-04-02 15:30:01 +0100 |
commit | 30f0c582e4b809dd860d34c8c4c598a91374b029 (patch) | |
tree | 315bd75e8729b86583aecdc21d5a3940d576c7b8 /generic/arch_pybindings.cc | |
parent | f5bfd557b625d1b5349c4a8305eccec30bafbe69 (diff) | |
download | nextpnr-30f0c582e4b809dd860d34c8c4c598a91374b029.tar.gz nextpnr-30f0c582e4b809dd860d34c8c4c598a91374b029.tar.bz2 nextpnr-30f0c582e4b809dd860d34c8c4c598a91374b029.zip |
python: Named argument support
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'generic/arch_pybindings.cc')
-rw-r--r-- | generic/arch_pybindings.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/arch_pybindings.cc b/generic/arch_pybindings.cc index 5eabd42a..04620cd5 100644 --- a/generic/arch_pybindings.cc +++ b/generic/arch_pybindings.cc @@ -30,6 +30,7 @@ NEXTPNR_NAMESPACE_BEGIN void arch_wrap_python() { using namespace PythonConversion; + auto arch_cls = class_<Arch, Arch *, bases<BaseCtx>, boost::noncopyable>("Arch", init<ArchArgs>()); auto ctx_cls = class_<Context, Context *, bases<Arch>, boost::noncopyable>("Context", no_init) .def("checksum", &Context::checksum) |