Skip to content

Commit 291b48e

Browse files
fangerertimfel
authored andcommitted
Implement is/asPointer for GraalHPyJNIFunctionPointer
1 parent 6bfc946 commit 291b48e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyJNIContext.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,16 @@ private static long convertPointer(Object argument, InteropLibrary interopLibrar
272272
}
273273
}
274274
}
275+
276+
@ExportMessage
277+
boolean isPointer() {
278+
return true;
279+
}
280+
281+
@ExportMessage
282+
long asPointer() {
283+
return pointer;
284+
}
275285
}
276286

277287
abstract static class GraalHPyJNIConvertArgNode extends Node {

0 commit comments

Comments
 (0)