From: Juan Belon Date: Mon, 22 Dec 2025 10:51:10 +0000 (+0000) Subject: curl_setup_once: allow CURL_DEBUGASSERT for customization X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12a1be509ed27dc96bf61aa21e9e3f36872f7b76;p=thirdparty%2Fcurl.git curl_setup_once: allow CURL_DEBUGASSERT for customization Closes #19744 --- 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