Added "directorout" typemaps for char * and const char * return values.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6152 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d34102d40b
commit
2c12ae87e5
1 changed files with 5 additions and 0 deletions
|
|
@ -91,6 +91,11 @@
|
|||
|
||||
%typemap(directorin) char * "$input = rb_str_new2($1);";
|
||||
|
||||
/* directorout typemaps */
|
||||
|
||||
%typemap(directorout) char * "$result = STR2CSTR($1);";
|
||||
%typemap(directorout) const char * "$result = STR2CSTR($1);";
|
||||
|
||||
/* ------------------------------------------------------------
|
||||
* Typechecking rules
|
||||
* ------------------------------------------------------------ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue