On Tue, 6 Dec 2022 15:20:26 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:
> We have a number of places in the codebase where a macro could help when we > check an exception and afterwrads free something and return. Good idea, though perhaps the return (and value if any) could be explicit in the macro invocation, instead of implicit (plus arg). A single macro would suffice, instead of multiples. Usage Example: JNU_CHECK_EXCEPTION_DO(env, { free(tab); return; }) Or put the invocation and return all on one line. ------------- PR: https://git.openjdk.org/jdk/pull/11539