Am 21.01.2013 16:48, schrieb Peter Maydell: > On 14 January 2013 23:08, <fred.kon...@greensocs.com> 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