[graalvm-users] pass java object to llvm function

Darrell Schiebel darrell at schiebel.us
Wed Jan 20 19:40:31 PST 2021


I am trying to reproduce the JavaScript example at:

   - https://www.graalvm.org/reference-manual/llvm/Interoperability/

using Java instead of JavaScript. In general it is straightforward, but I'm
having trouble passing a Java object to a C++ function to implement the
equivalent of:

// Additionally, pass a JS object to a native function
cpart.printPoint({x: 17, y: 42});


Is it possible to pass a Point object declared and instantiated in Java to
the LLVM printPoint function?

thanks,
Darrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/graalvm-users/attachments/20210120/e3012315/attachment.html 


More information about the GraalVM-Users mailing list