aboutsummaryrefslogtreecommitdiffstats
path: root/C2J/CFuncDeclaration.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-04-10 18:37:03 +0000
committerSven Gothel <[email protected]>2001-04-10 18:37:03 +0000
commit99f156a9d9e86e6d835ad9791071b23335476330 (patch)
treeb721df1c22bfc67fc6425d7d8ab1e9b9d2249ad1 /C2J/CFuncDeclaration.java
parente26f0c3e0a6be0f5555c5daee164047f3793d626 (diff)
Diffstat (limited to 'C2J/CFuncDeclaration.java')
-rw-r--r--C2J/CFuncDeclaration.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/C2J/CFuncDeclaration.java b/C2J/CFuncDeclaration.java
index 1236ee2..4431dfd 100644
--- a/C2J/CFuncDeclaration.java
+++ b/C2J/CFuncDeclaration.java
@@ -520,6 +520,22 @@ public class CFuncDeclaration
res += "\n" ;
//
+ // Add the query if the native function pointer is != NULL
+ //
+ res += "\t\tif ( ";
+
+ if(exportMode==C2J.EXPORT_JNI_C)
+ res += funcSpec.identifier;
+ else
+ res += "disp__"+funcSpec.identifier;
+
+ res += " == NULL ) return";
+
+ if(funcSpec.typeJava.equals("void")==false)
+ res += " 0";
+ res += ";\n\n";
+
+ //
// Adding the JNI access Methods
// for Arrays ...
// THE ARGUMENT ACCESS