From: phk Date: Mon, 7 Aug 2006 17:18:42 +0000 (+0000) Subject: Make assert do the right thing X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c7260c7228d03e9101c62b7ac2c029cf0509ff;p=varnish Make assert do the right thing git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@745 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/include/libvarnish.h b/varnish-cache/include/libvarnish.h index 02c8431e..a3a1edd7 100644 --- a/varnish-cache/include/libvarnish.h +++ b/varnish-cache/include/libvarnish.h @@ -22,7 +22,7 @@ void varnish_version(const char *); #else /* WITH_ASSERTS */ #define assert(e) \ do { \ - if (e) \ + if (!(e)) \ lbv_assert(__func__, __FILE__, __LINE__, #e, errno); \ } while (0) #endif