aboutsummaryrefslogtreecommitdiffstats
path: root/common/pybindings.cc
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/pybindings.cc
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/pybindings.cc')
-rw-r--r--common/pybindings.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc
index d941436b..8aa831ca 100644
--- a/common/pybindings.cc
+++ b/common/pybindings.cc
@@ -25,6 +25,8 @@
#include <fstream>
+NEXTPNR_NAMESPACE_BEGIN
+
// Required to determine concatenated module name (which differs for different
// archs)
#define PASTER(x, y) x##_##y
@@ -64,7 +66,6 @@ Design load_design_shim(std::string filename, ChipArgs args)
BOOST_PYTHON_MODULE(MODULE_NAME)
{
class_<GraphicElement>("GraphicElement")
- .def_readwrite("style", &GraphicElement::style)
.def_readwrite("type", &GraphicElement::type)
.def_readwrite("x1", &GraphicElement::x1)
.def_readwrite("y1", &GraphicElement::y1)
@@ -178,3 +179,5 @@ void execute_python_file(const char *python_file)
std::cout << "Error in Python: " << perror_str << std::endl;
}
}
+
+NEXTPNR_NAMESPACE_END