From 2bf0cd38f8853430c81e7a3e32ce7cc37d056713 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 15 May 2007 11:01:34 +0000 Subject: [PATCH] AN() and XXXAN() are also useful for non-pointer results. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1420 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/include/libvarnish.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish-cache/include/libvarnish.h b/varnish-cache/include/libvarnish.h index a9031a06..c31ec701 100644 --- a/varnish-cache/include/libvarnish.h +++ b/varnish-cache/include/libvarnish.h @@ -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) -- 2.39.5