Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2013-02-21 19:58:53 +0000
committerLakshmi Shanmugam2013-02-28 08:26:11 +0000
commit3d6911d77dc2e8c782862689ec330e7b8da14a0d (patch)
treec4a56d9f35b6b6c23c86e32660e860cd691967fb
parent0798097c49f4ae15711e6eccbd25cefbe89e41a6 (diff)
downloadeclipse.platform.swt-3d6911d77dc2e8c782862689ec330e7b8da14a0d.tar.gz
eclipse.platform.swt-3d6911d77dc2e8c782862689ec330e7b8da14a0d.tar.xz
eclipse.platform.swt-3d6911d77dc2e8c782862689ec330e7b8da14a0d.zip
handle call function with multiple return types. detect if native starts with callFunc
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java2
1 files changed, 1 insertions, 1 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 5994f9d69b..9a2ac1fe0a 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
@@ -686,7 +686,7 @@ void generateFunctionCall(JNIMethod method, JNIParameter[] params, JNIType retur
outputln("if (STRUCT_SIZE_LIMIT == 0) {");
output("\t\t");
}
- if (name.equalsIgnoreCase("call")) {
+ if (name.equalsIgnoreCase("call") || name.startsWith("callFunc")) {
output("(");
String cast = params[0].getCast();
if (cast.length() != 0 && !cast.equals("()")) {

Back to the top