Add the ability for special variable macros to call other special variable macros. Also added additional diagnostics when using -debug-tmsearch. Add tests for std::vector of shared_ptr.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2010-05-26 23:22:49 +00:00
commit e2ce97f397
6 changed files with 116 additions and 5 deletions

View file

@ -0,0 +1,24 @@
import li_boost_shared_ptr_bits.*;
public class li_boost_shared_ptr_bits_runme {
static {
try {
System.loadLibrary("li_boost_shared_ptr_bits");
} 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[])
{
VectorIntHolder v = new VectorIntHolder();
v.add(new IntHolder(11));
v.add(new IntHolder(22));
v.add(new IntHolder(33));
int sum = li_boost_shared_ptr_bits.sum(v);
if (sum != 66)
throw new RuntimeException("sum is wrong");
}
}