qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RfC PATCH 0/2] qdev: property macros.


From: Gerd Hoffmann
Subject: [Qemu-devel] [RfC PATCH 0/2] qdev: property macros.
Date: Tue, 28 Jul 2009 18:21:58 +0200

  Hi folks,

Presenting a new version of my patch to continue the discussion how
the macros should look like ;)

There are DEFINE_PROP_$TYPE("name", struct, field, default) macros for
each property type, thus no gcc-powered automagic selection.

typeof(struct->field) is verifyed to be the correct one for the given
property though (new in this version).  This uses gcc extentions, but
as it is a check only it could easily be turned off for non-gcc
compilers if needed.

Comments?

cheers,
  Gerd





reply via email to

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