|
From: | Paul Brook |
Subject: | Re: [Qemu-devel] [RfC PATCH 0/2] qdev/prop: type checking. |
Date: | Mon, 13 Jul 2009 16:36:44 +0100 |
User-agent: | KMail/1.11.4 (Linux/2.6.29-2-amd64; KDE/4.2.4; x86_64; ; ) |
> The second helps a bunch of helper macros to help creating property > declarations and converts pci.c as example. I'm not that happy with > that one yet. Especially I'd like to check somehow that > typeof(_state->_field) == _type. But couldn't figure out a way to do > so. As we are setting up static data structures we are quite limited in > what we can do here. The typechecking trick used by the linux kernel > min/max macros can't be used for example. Could we use a union rather than an opaque pointer for the default value? Paul
[Prev in Thread] | Current Thread | [Next in Thread] |