[Spice-devel] [PATCH 5/9] common: ring.h: define ASSERT if undefined
Christophe Fergeau
cfergeau at redhat.com
Wed Apr 27 04:20:01 PDT 2011
On Tue, Jan 25, 2011 at 07:17:24PM +0100, Marc-André Lureau wrote:
> diff --git a/common/ring.h b/common/ring.h
> index dcd3fbf..cdfe7e1 100644
> --- a/common/ring.h
> +++ b/common/ring.h
> @@ -21,6 +21,11 @@
>
> #include <stddef.h>
>
> +#ifndef ASSERT
> +# include <assert.h>
> +# define ASSERT(X) assert(X)
> +#endif
> +
ring.h now includes spice_common.h which contains an ASSERT definition. I
just realized that for some reason, it's reimplementing assert() by hand,
not sure why.
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110427/b34a545a/attachment.pgp>
More information about the Spice-devel
mailing list