From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001 From: Justus Winter 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. --- console-client/xkb/compose.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'console-client/xkb/compose.c') diff --git a/console-client/xkb/compose.c b/console-client/xkb/compose.c index fb3f07ca..17f30014 100644 --- a/console-client/xkb/compose.c +++ b/console-client/xkb/compose.c @@ -28,7 +28,7 @@ #include #include #include -#include +#include /* Tokens that can be recognised by the scanner. */ enum tokentype @@ -427,8 +427,8 @@ map_iterate(const char *map_path, map_callback action, void *context) size_t buffer_size = 0; size_t line_length = 0; - assert (map_path != NULL); - assert (action != NULL); + assert_backtrace (map_path != NULL); + assert_backtrace (action != NULL); map = fopen (map_path, "r"); -- cgit v1.2.3