Add an helper CHECK_ERROR_CLEANUP macro
authorPino Toscano <ptoscano@redhat.com>
Thu, 30 Aug 2018 10:13:39 +0000 (12:13 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 30 Aug 2018 10:26:32 +0000 (11:26 +0100)
commitcb3b0cd8c48cf7315ad64c05425f9dca7ac6068c
tree333edd3c75eed67353b125d3fe0873a4b796b3ff
parent8e2a0e31bd1cf6af2d8eab0fa7582c52a3b2d9ab
Add an helper CHECK_ERROR_CLEANUP macro

Extend the existing CHECK_ERROR macro to allow some code to be executed
right before raising Virterror.  Rework CHECK_ERROR to use
CHECK_ERROR_CLEANUP.
libvirt/libvirt_c_prologue.c