From 12a1be509ed27dc96bf61aa21e9e3f36872f7b76 Mon Sep 17 00:00:00 2001 From: Juan Belon Date: Mon, 22 Dec 2025 10:51:10 +0000 Subject: [PATCH] curl_setup_once: allow CURL_DEBUGASSERT for customization Closes #19744 --- lib/curl_setup_once.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/curl_setup_once.h b/lib/curl_setup_once.h index d00142fac2..0f5c771f63 100644 --- a/lib/curl_setup_once.h +++ b/lib/curl_setup_once.h @@ -273,7 +273,12 @@ typedef unsigned int curl_bit; */ #undef DEBUGASSERT #ifdef DEBUGBUILD +#ifdef CURL_DEBUGASSERT +/* External assertion handler for custom integrations */ +#define DEBUGASSERT(x) CURL_DEBUGASSERT(x) +#else #define DEBUGASSERT(x) assert(x) +#endif #else #define DEBUGASSERT(x) do {} while(0) #endif