using better names for frob
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5664 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e810800783
commit
e524a03a55
6 changed files with 40 additions and 34 deletions
|
|
@ -1,24 +0,0 @@
|
|||
|
||||
import frob.*;
|
||||
import java.lang.reflect.*;
|
||||
|
||||
public class frob_runme
|
||||
{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("frob");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String args[])
|
||||
{
|
||||
Bravo foo = new Bravo();
|
||||
|
||||
String s = foo.abs_method();
|
||||
if (!s.equals("Bravo::abs_method()"))
|
||||
throw new RuntimeException( "error" );
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue