Hat tip to @isaacbrodsky for pointing this issue out.
For now I've only implemented the cleanup functionality for the macros used in functions that actually allocate memory, and I've also abused a corner of the C spec so the calls still work as desired when no cleanup block is provided. Perhaps there's a better way to do this, though?
Hat tip to @isaacbrodsky for pointing this issue out.
For now I've only implemented the cleanup functionality for the macros used in functions that actually allocate memory, and I've also abused a corner of the C spec so the calls still work as desired when no cleanup block is provided. Perhaps there's a better way to do this, though?