aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-11-26 18:08:19 +0000
committerDavid Shah <dave@ds0.me>2020-11-26 18:08:19 +0000
commit1afa494e69e3c8af3dd5d1685b9cd2b1d3bea4d0 (patch)
treedf57277b2051d243734d064abfdfc19b94fbccc4 /common
parent839fbb3fe9da4f148f4283b94e4d4b1c048a240d (diff)
downloadnextpnr-1afa494e69e3c8af3dd5d1685b9cd2b1d3bea4d0.tar.gz
nextpnr-1afa494e69e3c8af3dd5d1685b9cd2b1d3bea4d0.tar.bz2
nextpnr-1afa494e69e3c8af3dd5d1685b9cd2b1d3bea4d0.zip
clangformat
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common')
-rw-r--r--common/pybindings.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/pybindings.h b/common/pybindings.h
index 2645f8cd..e50ffd1b 100644
--- a/common/pybindings.h
+++ b/common/pybindings.h
@@ -23,8 +23,8 @@
#include <Python.h>
#include <iostream>
-#include <pybind11/pybind11.h>
#include <pybind11/embed.h>
+#include <pybind11/pybind11.h>
#include <stdexcept>
#include <utility>
#include "pycontainers.h"
@@ -36,7 +36,6 @@ NEXTPNR_NAMESPACE_BEGIN
namespace py = pybind11;
-
std::string parse_python_exception();
template <typename Tn> void python_export_global(const char *name, Tn &x)
@@ -44,7 +43,7 @@ template <typename Tn> void python_export_global(const char *name, Tn &x)
try {
py::object obj = py::cast(x, py::return_value_policy::reference);
py::module::import("__main__").attr(name) = obj.ptr();
- } catch (pybind11::error_already_set &) {
+ } catch (pybind11::error_already_set &) {
// Parse and output the exception
std::string perror_str = parse_python_exception();
std::cout << "Error in Python: " << perror_str << std::endl;