aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/pybindings.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc
index 0990c00c..22c06c2e 100644
--- a/common/pybindings.cc
+++ b/common/pybindings.cc
@@ -84,12 +84,16 @@ struct range_wrapper {
#define WRAP_RANGE(t) range_wrapper<t##Range>().wrap(#t "Range", #t "Iterator")
+// Architecture-specific bindings should be created in the below function, which must be implemented in all
+// architectures
+void arch_wrap_python();
+
BOOST_PYTHON_MODULE (MODULE_NAME) {
// From Chip.h
- class_<ChipArgs>("ChipArgs");
WRAP_RANGE(Bels);
WRAP_RANGE(AllWires);
WRAP_RANGE(WireDelay);
WRAP_RANGE(BelPin);
+ arch_wrap_python();
}