curl_setup_once: allow CURL_DEBUGASSERT for customization

Closes #19744
This commit is contained in:
Juan Belon 2025-12-22 10:51:10 +00:00 committed by Daniel Stenberg
parent 3417cb1562
commit 12a1be509e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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