From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001
From: Justus Winter <justus@gnupg.org>
Date: Mon, 19 Jun 2017 21:20:57 +0200
Subject: Use our own variant of 'assert' and 'assert_perror'.

Our variants print stack traces on failures.  This will make locating
errors much easier.
---
 libcons/file-changed.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'libcons/file-changed.c')

diff --git a/libcons/file-changed.c b/libcons/file-changed.c
index fa5cebd7..e3e35635 100644
--- a/libcons/file-changed.c
+++ b/libcons/file-changed.c
@@ -19,7 +19,7 @@
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. */
 
 #include <errno.h>
-#include <assert.h>
+#include <assert-backtrace.h>
 #include <pthread.h>
 
 #include <mach.h>
@@ -198,7 +198,7 @@ cons_S_file_changed (cons_notify_t notify, natural_t tickno,
 		  vcons->state.screen.scr_lines
 		    = vcons->display->screen.scr_lines;
 		  if (vcons->state.screen.scr_lines < vcons->scrolling)
-		    assert (!"Implement shrinking scrollback buffer! XXX");
+		    assert_backtrace (!"Implement shrinking scrollback buffer! XXX");
 		}
 	      if (change.what.bell_audible)
 		{
-- 
cgit v1.2.3