Added std_string support. Renamed SWIG_exception to SWIG_exc to avoid name collision with macro in Lib/exception.i.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10720 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Maciej Drwal 2008-07-30 22:09:02 +00:00
commit dcec3c3fb0
6 changed files with 140 additions and 50 deletions

View file

@ -31,9 +31,9 @@ int main() {
A_foobar(a);
}
SWIG_catch(SWIG_AnyException) {
if (strcmp(SWIG_exception.msg, "postcatch unknown") != 0) {
if (strcmp(SWIG_exc.msg, "postcatch unknown") != 0) {
fprintf(stderr, "bad exception order\n");
SWIG_throw_msg(SWIG_exception.klass, SWIG_exception.msg);
SWIG_throw_msg(SWIG_exc.klass, SWIG_exc.msg);
}
}
SWIG_endtry;