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/SWIG@6125 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
58c7e8b18d
commit
eea19ad0db
1 changed files with 5 additions and 0 deletions
|
|
@ -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());";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue