RFR: 7903704: Expose addresses of native functions
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Apr 5 08:59:24 UTC 2024
On Tue, 2 Apr 2024 15:08:48 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Add accessors for the address of a native function. This follows the jextract principle of exposing all the information that it has.
>
> The address is useful in cases where a user needs to pass the address of a native function to be used as a callback by another (higher-order) native function.
>
> Note: while working on this I noticed that the `TestUtils` file was not being rebuilt when dependent tests were running. Many tests depend on this file to compile generated source code for instance. I've added the needed `@build` tags, and `lib.build` property (the latter only works for the tests under `TestNG.dirs`).
Very nice!
-------------
Marked as reviewed by mcimadamore (Reviewer).
PR Review: https://git.openjdk.org/jextract/pull/228#pullrequestreview-1982394979
More information about the jextract-dev
mailing list