[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
Re: [Qemu-devel] [PATCH v6 1/5] qobject: ensure base is at offset 0, Markus Armbruster, 2018/04/27
[Qemu-devel] [PATCH v6 2/5] qobject: use a QObjectBase_ struct, Marc-André Lureau, 2018/04/19
[Qemu-devel] [PATCH v6 5/5] qobject: modify qobject_ref() to assert on NULL, Marc-André Lureau, 2018/04/19
[Qemu-devel] [PATCH v6 4/5] qobject: modify qobject_ref() to return obj, Marc-André Lureau, 2018/04/19