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/commands.cc | |
| parent | 34b8604f902042985fa9a7101427f5eafadee55e (diff) | |
rename assert to kak_assert to avoid collisions
Diffstat (limited to 'src/commands.cc')
| -rw-r--r-- | src/commands.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.cc b/src/commands.cc index 63ec8ddc..c46f1596 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -66,7 +66,7 @@ Buffer* open_fifo(const String& name , const String& filename, Context& context) ClientManager::instance().redraw_clients(); if (count <= 0) { - assert(buffer->flags() & Buffer::Flags::Fifo); + kak_assert(buffer->flags() & Buffer::Flags::Fifo); buffer->flags() &= ~Buffer::Flags::Fifo; close(watcher.fd()); delete &watcher; @@ -804,7 +804,7 @@ public: Key get_key() override { - assert(m_pos < m_keys.size()); + kak_assert(m_pos < m_keys.size()); return m_keys[m_pos++]; } bool is_key_available() override { return m_pos < m_keys.size(); } |
