summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2004-02-29 08:07:53 +0000
committerSilenio Quarti <silenio>2004-02-29 08:07:53 +0000
commit332a892f9283f5e8e58c01a6294013466c9ce924 (patch)
tree29054ff73af2f381fca1df5593419fdb89692067 /bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java
parent81954812dbcfdc38385fc50d81091df34fbe46c4 (diff)
downloadeclipse.platform.swt-332a892f9283f5e8e58c01a6294013466c9ce924.tar.gz
eclipse.platform.swt-332a892f9283f5e8e58c01a6294013466c9ce924.tar.xz
eclipse.platform.swt-332a892f9283f5e8e58c01a6294013466c9ce924.zip
vtable call
Diffstat (limited to 'bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java')
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/NativesGenerator.java5
1 files changed, 5 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 ca7aabc340..a18572f19f 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
@@ -467,6 +467,11 @@ void generateFunctionCall(Method method, MethodData methodData, Class[] paramTyp
}
output("arg0)");
paramStart = 1;
+ } else if (method.getName().equals("VtblCall")) {
+ output("((");
+ output(getTypeSignature2(returnType));
+ output(" (STDMETHODCALLTYPE *)())(*(int **)arg1)[arg0])");
+ paramStart = 1;
} else {
output(method.getName());
}