On Fri, 4 Mar 2022 21:30:53 GMT, David Holmes <dhol...@openjdk.org> wrote:
> I would have just inlined JNU_CHECK_EXCEPTION and added the cleanup code > directly. The additional macro wasn't really necessary and would not really > be usable for any kind of general cleanup actions beyond a one-liner. > > But it is okay. > > Thanks. Thanks for the review, @dholmes-ora . The macros are used to hide the different syntax of c and c++ to avoid polluting code here, it seems to be a common pattern in client code. ------------- PR: https://git.openjdk.java.net/jdk/pull/7691