mirror of
https://github.com/curl/curl.git
synced 2026-07-27 20:53:18 +03:00
curl_setup_once: allow CURL_DEBUGASSERT for customization
Closes #19744
This commit is contained in:
parent
3417cb1562
commit
12a1be509e
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue