On Wed, Sep 24, 2025, 17:06 Zhao Liu <[email protected]> wrote:

> > Considerring the idea about returing &'static [VMStateField], I think at
> > least we could return `_FIELDS.as_ptr()` directly from vmstate_fields!,
>                          ^^^^^^^^^^^^^^^^
> Sorry for copy error :(,  s/_FIELDS.as_ptr()/_FIELDS/
>
> > and convert &'static [VMStateField] to *const [VMStateField] in
> > fields(), just like subsections() did.
>

Yes, that's a good idea. Though subsections() can also be cleaned up a lot
to avoid the wrapper. I will include everything in the next version.

Paolo

>

Reply via email to