On Wed, Aug 07, 2019 at 11:34:41AM +0100, Peter Maydell wrote: > On Wed, 31 Jul 2019 at 07:33, David Gibson <da...@gibson.dropbear.id.au> > wrote: > > > > On Mon, Jul 29, 2019 at 04:56:30PM +0200, Damien Hedde wrote: > > > +The function *resettable_reset* is used to trigger a reset on a given > > > +object. > > > +void resettable_reset(Object *obj, bool cold) > > > + > > > +The parameter *obj* must implement the Resettable interface. > > > > And what happens if it doesn't? This function has no way to report an > > error. > > Trying to reset an object that isn't actually resettable would > be a programming error -- I think asserting is a reasonable > response to that.
Yeah, fair enough. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature