summaryrefslogtreecommitdiff
path: root/src/selection.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-02-27 19:02:01 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-02-27 19:02:01 +0100
commitcd8c36fc500dc0df5fb4232a8b1b94ab89495737 (patch)
tree15a83f3eecbc3e55985a36f2083fb4a16ddbd41b /src/selection.cc
parent6f48407f55bf57b6cd1cd01f4e327c8137d592ac (diff)
Add a debug option to Makefile, and use KAK_DEBUG define to remove debug code
Diffstat (limited to 'src/selection.cc')
-rw-r--r--src/selection.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/selection.cc b/src/selection.cc
index 77511c00..04ebae81 100644
--- a/src/selection.cc
+++ b/src/selection.cc
@@ -26,10 +26,12 @@ BufferIterator Range::end() const
void Range::check_invariant() const
{
+#ifdef KAK_DEBUG
assert(m_first.is_valid());
assert(m_last.is_valid());
assert(utf8::is_character_start(m_first));
assert(utf8::is_character_start(m_last));
+#endif
}
static void avoid_eol(BufferIterator& it)