(method, typelist) special variable macro fixed/enhanced and made official

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-07-29 20:50:39 +00:00
commit bf0ee4471c
17 changed files with 532 additions and 161 deletions

View file

@ -0,0 +1,28 @@
import special_variable_functions.*;
public class special_variable_functions_runme {
static {
try {
System.loadLibrary("special_variable_functions");
} 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 argv[]) {
Name name = new Name();
if (!special_variable_functions.testFred(name).equals("none"))
throw new RuntimeException("test failed");
if (!special_variable_functions.testJack(name).equals("$specialname"))
throw new RuntimeException("test failed");
if (!special_variable_functions.testJill(name).equals("jilly"))
throw new RuntimeException("test failed");
if (!special_variable_functions.testMary(name).equals("SWIGTYPE_p_NameWrap"))
throw new RuntimeException("test failed");
NewName newName = NewName.factory("factoryname");
name = newName.getStoredName();
}
}