HI all!

My questions is: what are general recommendations in Qemu for return code, if we have Error **errp? What should I prefer: errp, duplicated by int return code, or void functions with errp?


void + errp seems good, just to not duplicate things. But it has a disadvantage of necessity of "local_err" and "error_propagate" in caller function, if its behaviour depends on callee function success...

--
Best regards,
Vladimir


Reply via email to