summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSilenio Quarti2013-02-21 14:58:53 (EST)
committer Carolyn MacLeod2013-04-09 10:53:17 (EDT)
commitd669234bb8c317abb5069b9b536e08d4bc07220f (patch)
tree5829d639695bdd0cf6ae32213e5b6ee7e05572b1
parent1d8434c67940f65d565d912fe9d8561851aab45c (diff)
downloadeclipse.platform.swt-d669234bb8c317abb5069b9b536e08d4bc07220f.zip
eclipse.platform.swt-d669234bb8c317abb5069b9b536e08d4bc07220f.tar.gz
eclipse.platform.swt-d669234bb8c317abb5069b9b536e08d4bc07220f.tar.bz2
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 5994f9d..9a2ac1f 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("()")) {