aboutsummaryrefslogtreecommitdiffstats
path: root/common/scope_lock.h
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-03-15 21:08:28 +0000
committerGitHub <noreply@github.com>2021-03-15 21:08:28 +0000
commitbf5f0fc58f2c055b6f45a6300ce3895aa79cd27c (patch)
tree25817e9ea10d339bf4c127b0a082cc5ac9a51deb /common/scope_lock.h
parenta8e35062c6a1a21838346dd7536bb2fcc7f820ed (diff)
parent351ca3b5eac472b4bd08b11a4aa6fb67e545eda3 (diff)
downloadnextpnr-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/scope_lock.h')
-rw-r--r--common/scope_lock.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/scope_lock.h b/common/scope_lock.h
index 7b6c9dcd..2f0f767c 100644
--- a/common/scope_lock.h
+++ b/common/scope_lock.h
@@ -22,7 +22,9 @@
#include <stdexcept>
-namespace nextpnr {
+#include "nextpnr_namespaces.h"
+
+NEXTPNR_NAMESPACE_BEGIN
// Provides a simple RAII locking object. ScopeLock takes a lock when
// constructed, and releases the lock on destruction or if "unlock_early" is
@@ -60,6 +62,6 @@ template <typename LockingObject> class ScopeLock
bool locked_;
};
-}; // namespace nextpnr
+NEXTPNR_NAMESPACE_END
#endif /* SCOPE_LOCK_H */