diff options
author | gatecat <gatecat@ds0.me> | 2021-03-15 21:08:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 21:08:28 +0000 |
commit | bf5f0fc58f2c055b6f45a6300ce3895aa79cd27c (patch) | |
tree | 25817e9ea10d339bf4c127b0a082cc5ac9a51deb /common/dynamic_bitarray.h | |
parent | a8e35062c6a1a21838346dd7536bb2fcc7f820ed (diff) | |
parent | 351ca3b5eac472b4bd08b11a4aa6fb67e545eda3 (diff) | |
download | nextpnr-bf5f0fc58f2c055b6f45a6300ce3895aa79cd27c.tar.gz nextpnr-bf5f0fc58f2c055b6f45a6300ce3895aa79cd27c.tar.bz2 nextpnr-bf5f0fc58f2c055b6f45a6300ce3895aa79cd27c.zip |
Merge pull request #625 from litghost/use_namespace_macro
Use NEXTPNR_NAMESPACE macro's now that headers are seperated.
Diffstat (limited to 'common/dynamic_bitarray.h')
-rw-r--r-- | common/dynamic_bitarray.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/common/dynamic_bitarray.h b/common/dynamic_bitarray.h index 2b5ab2bc..605d59d5 100644 --- a/common/dynamic_bitarray.h +++ b/common/dynamic_bitarray.h @@ -17,18 +17,19 @@ * */ +#ifndef DYNAMIC_BITARRAY_H +#define DYNAMIC_BITARRAY_H + #include <cstdint> #include <limits> #include <vector> -// This class implements a simple dynamic bitarray, backed by some resizable -// random access storage. The default is to use a std::vector<uint8_t>. - -#ifndef DYNAMIC_BITARRAY_H -#define DYNAMIC_BITARRAY_H +#include "nextpnr_namespaces.h" -namespace nextpnr { +NEXTPNR_NAMESPACE_BEGIN +// This class implements a simple dynamic bitarray, backed by some resizable +// random access storage. The default is to use a std::vector<uint8_t>. template <typename Storage = std::vector<uint8_t>> class DynamicBitarray { public: @@ -76,6 +77,6 @@ template <typename Storage = std::vector<uint8_t>> class DynamicBitarray Storage storage; }; -}; // namespace nextpnr +NEXTPNR_NAMESPACE_END #endif /* DYNAMIC_BITARRAY_H */ |