From 22f25a9e4feddbc093ae01cd53bdda3c2c3a82e9 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Fri, 15 Jan 2021 20:39:45 +0000 Subject: Print stack trace on assert() failure or when calling fatal_error() Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use. --- xsnprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xsnprintf.c') diff --git a/xsnprintf.c b/xsnprintf.c index e8e8d25d..9e7693b6 100644 --- a/xsnprintf.c +++ b/xsnprintf.c @@ -1,8 +1,8 @@ #include "xsnprintf.h" -#include #include #include +#include "debug.h" size_t xvsnprintf(char *buf, size_t n, const char *format, va_list ap) -- cgit v1.3