On Mon, 08/01 12:31, Paolo Bonzini wrote: > > + > > +static void sdl_init_fn(void) > > +{ > > + sdl_register_init_fun(sdl_display_init_do); > > +} > > + > > +sdl_init(sdl_init_fn); > > Can you use __attribute__((constructor)) instead of going through the > burden of defining a new type? The registration function only does a > single assignment, so it doesn't really have ordering dependencies.
Yeah, it makes sense! Thanks. Fam