diff options
Diffstat (limited to 'dummy')
-rw-r--r-- | dummy/chip.cc | 4 | ||||
-rw-r--r-- | dummy/chip.h | 4 | ||||
-rw-r--r-- | dummy/main.cc | 2 | ||||
-rw-r--r-- | dummy/pybindings.cc | 4 |
4 files changed, 14 insertions, 0 deletions
diff --git a/dummy/chip.cc b/dummy/chip.cc index 0e23a20a..23aa0e9d 100644 --- a/dummy/chip.cc +++ b/dummy/chip.cc @@ -19,6 +19,8 @@ #include "nextpnr.h" +NEXTPNR_NAMESPACE_BEGIN + Chip::Chip(ChipArgs) {} std::string Chip::getChipName() { return "Dummy"; } @@ -156,3 +158,5 @@ std::vector<GraphicElement> Chip::getFrameGraphics() const static std::vector<GraphicElement> ret; return ret; } + +NEXTPNR_NAMESPACE_END diff --git a/dummy/chip.h b/dummy/chip.h index 274f0e8e..e5a6dd56 100644 --- a/dummy/chip.h +++ b/dummy/chip.h @@ -24,6 +24,8 @@ #error Include "chip.h" via "nextpnr.h" only. #endif +NEXTPNR_NAMESPACE_BEGIN + struct DelayInfo { float delay = 0; @@ -116,4 +118,6 @@ struct Chip std::vector<GraphicElement> getFrameGraphics() const; }; +NEXTPNR_NAMESPACE_END + #endif diff --git a/dummy/main.cc b/dummy/main.cc index df5333ca..3b9e6ba3 100644 --- a/dummy/main.cc +++ b/dummy/main.cc @@ -23,6 +23,8 @@ #include "mainwindow.h" #include "nextpnr.h" +USING_NEXTPNR_NAMESPACE + int main(int argc, char *argv[]) { Design design(ChipArgs{}); diff --git a/dummy/pybindings.cc b/dummy/pybindings.cc index a0b6322e..ec0e20b2 100644 --- a/dummy/pybindings.cc +++ b/dummy/pybindings.cc @@ -21,4 +21,8 @@ #include "pybindings.h" #include "nextpnr.h" +NEXTPNR_NAMESPACE_BEGIN + void arch_wrap_python() { class_<ChipArgs>("ChipArgs"); } + +NEXTPNR_NAMESPACE_END |