diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-04-09 20:04:11 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-04-09 20:04:11 +0200 |
| commit | 5adee4a6a7e63aed3fac3cd8c9456d2ee1cd06a1 (patch) | |
| tree | 6cc5a0d0628ab4d631f0cffd53a062cc417753a2 /src/utils.hh | |
| parent | 34b8604f902042985fa9a7101427f5eafadee55e (diff) | |
rename assert to kak_assert to avoid collisions
Diffstat (limited to 'src/utils.hh')
| -rw-r--r-- | src/utils.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.hh b/src/utils.hh index bd52bf0c..117adf75 100644 --- a/src/utils.hh +++ b/src/utils.hh @@ -41,13 +41,13 @@ public: protected: Singleton() { - assert(not ms_instance); + kak_assert(not ms_instance); ms_instance = static_cast<T*>(this); } ~Singleton() { - assert(ms_instance == this); + kak_assert(ms_instance == this); ms_instance = nullptr; } @@ -134,10 +134,10 @@ class SafeCountable public: #ifdef KAK_DEBUG SafeCountable() : m_count(0) {} - ~SafeCountable() { assert(m_count == 0); } + ~SafeCountable() { kak_assert(m_count == 0); } void inc_safe_count() const { ++m_count; } - void dec_safe_count() const { --m_count; assert(m_count >= 0); } + void dec_safe_count() const { --m_count; kak_assert(m_count >= 0); } private: mutable int m_count; |
