Add catches_strings test to test throws char * typemap
This commit is contained in:
parent
034e2358f9
commit
4a29229bab
21 changed files with 286 additions and 0 deletions
13
Examples/test-suite/catches_strings.i
Normal file
13
Examples/test-suite/catches_strings.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module catches_strings
|
||||
|
||||
%include <std_string.i>
|
||||
|
||||
%catches(const char *) StringsThrower::charstring;
|
||||
|
||||
%inline %{
|
||||
struct StringsThrower {
|
||||
static void charstring() {
|
||||
throw "charstring message";
|
||||
}
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue