aboutsummaryrefslogtreecommitdiffstats
path: root/common/pycontainers.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-12 14:24:59 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-12 14:24:59 +0200
commit391d49c13ec675e263115d18481d4b842622b712 (patch)
treeadf6116cbb6688d31fc565cc2f14bb874f535486 /common/pycontainers.h
parent5f813410aabdae3de84e11861248dcd0699b41c2 (diff)
downloadnextpnr-391d49c13ec675e263115d18481d4b842622b712.tar.gz
nextpnr-391d49c13ec675e263115d18481d4b842622b712.tar.bz2
nextpnr-391d49c13ec675e263115d18481d4b842622b712.zip
Add nextpnr namespace
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/pycontainers.h')
-rw-r--r--common/pycontainers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/pycontainers.h b/common/pycontainers.h
index 423e36f5..992d0de9 100644
--- a/common/pycontainers.h
+++ b/common/pycontainers.h
@@ -27,6 +27,9 @@
#include <stdexcept>
#include <type_traits>
#include <utility>
+#include "nextpnr.h"
+
+NEXTPNR_NAMESPACE_BEGIN
using namespace boost::python;
@@ -270,4 +273,6 @@ template <typename T> struct map_wrapper
map_wrapper<t>().wrap(#name, #name "KeyValue", #name "KeyValueIter", \
#name "Iterator")
+NEXTPNR_NAMESPACE_END
+
#endif