]> err.no Git - varnish/commitdiff
AN() and XXXAN() are also useful for non-pointer results.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 15 May 2007 11:01:34 +0000 (11:01 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 15 May 2007 11:01:34 +0000 (11:01 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1420 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/include/libvarnish.h

index a9031a0646157a59ad951bcc804507683768facf..c31ec701ecc13ec22941a12c7516b1505e56595f 100644 (file)
@@ -80,6 +80,6 @@ void lbv_xxxassert(const char *, const char *, int, const char *, int);
 
 /* Assert zero return value */
 #define AZ(foo)        do { assert((foo) == 0); } while (0)
-#define AN(foo)        do { assert((foo) != NULL); } while (0)
+#define AN(foo)        do { assert((foo) != 0); } while (0)
 #define XXXAZ(foo)     do { xxxassert((foo) == 0); } while (0)
-#define XXXAN(foo)     do { xxxassert((foo) != NULL); } while (0)
+#define XXXAN(foo)     do { xxxassert((foo) != 0); } while (0)