On 29/1/24 21:26, Paolo Bonzini wrote:
On Mon, Jan 29, 2024 at 8:49 PM Bernhard Beschow <shen...@gmail.com> wrote:Don't we prefer a macro for below code? While touching the code we could use it. (Sorry I can't recall its name from the top of my head and I don't have access to the code right now).Ah yeah, OBJECT_DEFINE_TYPE. Not sure it's much of a win because neither finalize or instance_init are required here.
Bernhard likely meant type_init() -> DEFINE_TYPES().