aboutsummaryrefslogtreecommitdiffstats
path: root/generic/arch_pybindings.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-03-31 17:28:45 +0100
committerDavid Shah <dave@ds0.me>2019-04-02 15:30:01 +0100
commit30f0c582e4b809dd860d34c8c4c598a91374b029 (patch)
tree315bd75e8729b86583aecdc21d5a3940d576c7b8 /generic/arch_pybindings.cc
parentf5bfd557b625d1b5349c4a8305eccec30bafbe69 (diff)
downloadnextpnr-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.cc1
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)