curl_setup_once: allow CURL_DEBUGASSERT for customization
No binary (build failed)
—
(log yok)
| @@ -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 | |