qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v6 1/5] qobject: ensure base is at offset 0


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v6 1/5] qobject: ensure base is at offset 0
Date: Tue, 24 Apr 2018 13:34:27 +0100

On 24 April 2018 at 13:18, Markus Armbruster <address@hidden> wrote:
> We define hundreds of QOM types without ever bothering to check the
> super type comes first.  We don't even bother to clearly document it has
> to come first.

If you don't put the super type first then the first time you
do MyParent *p = MY_PARENT(me); then the QOM cast will assert
on you, so you'll figure it out pretty quickly...

thanks
-- PMM



reply via email to

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