Added "throws" typemaps for std::string and its variants. Fixes broken

test case lib_std_string.i for the Ruby module.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Lyle Johnson 2004-08-24 13:28:05 +00:00
commit d9181829c4

View file

@ -74,4 +74,9 @@ namespace std {
}
}
%typemap(throws) string, const string &
"rb_raise(rb_eRuntimeError, $1.c_str());";
%typemap(throws) string *, const string *
"rb_raise(rb_eRuntimeError, $1->c_str());";
}