diff options
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java index 2f665bc4c2..d4f22bf109 100644 --- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java +++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java @@ -638,6 +638,10 @@ void generateFunctionCall(Method method, MethodData methodData, Class[] paramTyp String cast = paramData.getCast(); if (cast.length() != 0 && !cast.equals("()")) { output(cast); + } else { + output("("); + output(name.substring(0, name.indexOf("_"))); + output(" *)"); } outputln("arg0;"); return; |