Commit b3c17d97 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

AN() and XXXAN() are also useful for non-pointer results.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1420 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent a4de2bed
......@@ -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)
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