Commit b049f44b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Call __assert() lbv_assert() instead.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@743 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b36cebd9
...@@ -23,11 +23,11 @@ void varnish_version(const char *); ...@@ -23,11 +23,11 @@ void varnish_version(const char *);
#define assert(e) \ #define assert(e) \
do { \ do { \
if (e) \ if (e) \
__assert(__func__, __FILE__, __LINE__, #e, errno); \ lbv_assert(__func__, __FILE__, __LINE__, #e, errno); \
} while (0) } while (0)
#endif #endif
void __assert(const char *, const char *, int, const char *, int); void lbv_assert(const char *, const char *, int, const char *, int);
/* Assert zero return value */ /* Assert zero return value */
#define AZ(foo) do { assert((foo) == 0); } while (0) #define AZ(foo) do { assert((foo) == 0); } while (0)
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "libvarnish.h" #include "libvarnish.h"
void void
__assert(const char *func, const char *file, int line, const char *cond, int err) lbv_assert(const char *func, const char *file, int line, const char *cond, int err)
{ {
fprintf(stderr, fprintf(stderr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment