]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_setup_once: allow CURL_DEBUGASSERT for customization
authorJuan Belon <juan.belon@xa.epicgames.com>
Mon, 22 Dec 2025 10:51:10 +0000 (10:51 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 5 Feb 2026 16:40:46 +0000 (17:40 +0100)
Closes #19744

lib/curl_setup_once.h

index d00142fac22d72c5873e7d538e1fa828820a7f6e..0f5c771f63d622ca80ad1f60bc930473d1331695 100644 (file)
@@ -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