PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/java/java_pragmas_runme.java

#
Java | 15 lines | 8 code | 5 blank | 2 comment | 0 complexity | 678263ac057d295394969b97f4760824 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1
 2import java_pragmas.*;
 3
 4public class java_pragmas_runme {
 5
 6  // No system.loadLibrary() as the JNI class will do this
 7
 8  public static void main(String argv[]) 
 9  {
10    // Call a JNI class function. Normally this is not possible as the class is protected, however, the jniclassmodifiers pragma has changed this.
11    long int_pointer = java_pragmasJNI.get_int_pointer(); 
12
13    java_pragmas.added_function("hello");
14  }
15}