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:
parent
55d1b3338f
commit
d9181829c4
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