On 10/15/21 12:52, Richard W.M. Jones wrote: > nbdkit definitely abuses macros. I guess you've not seen > https://gitlab.com/nbdkit/nbdkit/-/blob/master/common/utils/vector.h > yet. > > Or for even more excitement, > https://github.com/libguestfs/libguestfs-common/blob/master/utils/libxml2-writer-macros.h
Whoa. :) > > Lots of little callback functions would annoy me TBH. How about > Eric's idea of having the START_RETRY / END_RETRY macros instead? Sure! (Funnily enough, in edk2, there is DEBUG_CODE(...), and DEBUG_CODE_BEGIN + DEBUG_CODE_END :)) Thanks! Laszlo _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs