diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-02-27 19:02:01 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-02-27 19:02:01 +0100 |
| commit | cd8c36fc500dc0df5fb4232a8b1b94ab89495737 (patch) | |
| tree | 15a83f3eecbc3e55985a36f2083fb4a16ddbd41b /src/buffer.cc | |
| parent | 6f48407f55bf57b6cd1cd01f4e327c8137d592ac (diff) | |
Add a debug option to Makefile, and use KAK_DEBUG define to remove debug code
Diffstat (limited to 'src/buffer.cc')
| -rw-r--r-- | src/buffer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.cc b/src/buffer.cc index 3c919c19..a73f8fd3 100644 --- a/src/buffer.cc +++ b/src/buffer.cc @@ -225,6 +225,7 @@ bool Buffer::redo() void Buffer::check_invariant() const { +#ifdef KAK_DEBUG ByteCount start = 0; assert(not m_lines.empty()); for (auto& line : m_lines) @@ -234,6 +235,7 @@ void Buffer::check_invariant() const assert(line.content.back() == '\n'); start += line.length(); } +#endif } void Buffer::do_insert(const BufferIterator& pos, const String& content) |
