1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

we now have a 'curlassert' function to use

This commit is contained in:
Daniel Stenberg 2003-12-10 15:27:06 +00:00
parent 24ac5b8a6c
commit 3b048880ad

View File

@ -76,8 +76,11 @@ typedef unsigned char bool;
#define _REENTRANT #define _REENTRANT
#endif #endif
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_ASSERT_H
#include <assert.h>
#endif
#ifndef OS #ifndef OS
#ifdef WIN32 #ifdef WIN32
#define OS "win32" #define OS "win32"
@ -116,6 +119,14 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO)
#endif #endif
#endif #endif
#if defined(CURLDEBUG) && defined(HAVE_ASSERT_H)
#define NDEBUG
#define curlassert(x) assert(x)
#else
/* does nothing without CURLDEBUG defined */
#define curlassert(x)
#endif
#ifdef MSG_NOSIGNAL #ifdef MSG_NOSIGNAL
/* If we have the MSG_NOSIGNAL define, we make sure to use that in the forth /* If we have the MSG_NOSIGNAL define, we make sure to use that in the forth
argument to send() and recv() */ argument to send() and recv() */