qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V3 2/7] virtio-bus: introduce virtio-bus


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH V3 2/7] virtio-bus: introduce virtio-bus
Date: Mon, 21 Jan 2013 16:53:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

Am 21.01.2013 16:48, schrieb Peter Maydell:
> On 14 January 2013 23:08,  <address@hidden> wrote:
>> +#define TYPE_VIRTIO_BUS "virtio-bus"
>> +#define VIRTIO_BUS_GET_CLASS(obj) \
>> +        OBJECT_GET_CLASS(VirtioBusClass, obj, TYPE_VIRTIO_BUS)
>> +#define VIRTIO_BUS_CLASS(klass) \
>> +        OBJECT_CLASS_CHECK(VirtioBusClass, klass, TYPE_VIRTIO_BUS)
> 
> 'obj' and 'klass' need brackets round them, because they're
> macro arguments.

BTW since these are macro arguments and not C code, I believe "class"
should be perfectly valid here if you wanted.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]