diff options
Diffstat (limited to 'C2J/CFuncDeclaration.java')
-rw-r--r-- | C2J/CFuncDeclaration.java | 16 |
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 |