PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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. import java_pragmas.*;
  2. public class java_pragmas_runme {
  3. // No system.loadLibrary() as the JNI class will do this
  4. public static void main(String argv[])
  5. {
  6. // Call a JNI class function. Normally this is not possible as the class is protected, however, the jniclassmodifiers pragma has changed this.
  7. long int_pointer = java_pragmasJNI.get_int_pointer();
  8. java_pragmas.added_function("hello");
  9. }
  10. }