Skip to content

Commit

Permalink
Revert removing long so its possible to generate public native method
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Aug 26, 2024
1 parent 0475a7b commit 5dc9000
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ else if(size == 0) {
if(!JParserHelper.containsMethod(classOrInterfaceDeclaration, nativeMethod)) {
classOrInterfaceDeclaration.getMembers().add(nativeMethod);
MethodCallExpr caller = IDLMethodParser.createCaller(nativeMethod);
caller.addArgument(IDLDefaultCodeParser.CPOINTER_METHOD);
caller.addArgument("(long)" + IDLDefaultCodeParser.CPOINTER_METHOD);
BlockStmt blockStmt = deleteMethod.getBody().get();
blockStmt.addStatement(caller);
idlParser.onIDLDeConstructorGenerated(jParser, idlClass, classOrInterfaceDeclaration, nativeMethod);
Expand Down

0 comments on commit 5dc9000

Please sign in to comment.