aboutsummaryrefslogtreecommitdiffstats
path: root/common/pybindings.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-04 13:35:15 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-04 14:55:24 +0200
commitf6432aa88e8a9d6347a60f9898e74a4ebc1b2b3a (patch)
tree5c97f25e9b9bfe165ef650e21c42b103a996e193 /common/pybindings.cc
parentf8ad2b31a9a1a43ac415e8b203851c6f091dde6f (diff)
downloadnextpnr-f6432aa88e8a9d6347a60f9898e74a4ebc1b2b3a.tar.gz
nextpnr-f6432aa88e8a9d6347a60f9898e74a4ebc1b2b3a.tar.bz2
nextpnr-f6432aa88e8a9d6347a60f9898e74a4ebc1b2b3a.zip
python: Adding more wrapped bindings for ice40
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/pybindings.cc')
-rw-r--r--common/pybindings.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc
index ea57dbbb..5ad8a983 100644
--- a/common/pybindings.cc
+++ b/common/pybindings.cc
@@ -61,7 +61,8 @@ Context *load_design_shim(std::string filename, ArchArgs args)
return d;
}
-void translate_assertfail(const assertion_failure &e) {
+void translate_assertfail(const assertion_failure &e)
+{
// Use the Python 'C' API to set up an exception object
PyErr_SetString(PyExc_AssertionError, e.what());
}
@@ -123,9 +124,9 @@ BOOST_PYTHON_MODULE(MODULE_NAME)
// WRAP_MAP_UPTR(decltype(Context::nets), "IdNetMap");
// WRAP_MAP_UPTR(decltype(Context::cells), "IdCellMap");
- auto ci_cls = class_<ContextualWrapper<CellInfo&>>("CellInfo", no_init);
- readonly_wrapper<CellInfo&, typeof(&CellInfo::type), &CellInfo::type, conv_to_str<IdString>>::def_wrap(ci_cls,
- "type");
+ auto ci_cls = class_<ContextualWrapper<CellInfo &>>("CellInfo", no_init);
+ readonly_wrapper<CellInfo &, typeof(&CellInfo::type), &CellInfo::type, conv_to_str<IdString>>::def_wrap(ci_cls,
+ "type");
def("parse_json", parse_json_shim);
def("load_design", load_design_shim, return_value_policy<manage_new_object>());