Typemap fix for methods that return char *. The CLR would incorrectly
delete the memory pointed to by char *. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6162 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
70891c9867
commit
dc2bf27dc0
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@
|
|||
|
||||
/* char * - treat as String */
|
||||
%typemap(in) char * %{ $1 = $input; %}
|
||||
%typemap(out) char * %{ $result = $1; %}
|
||||
%typemap(out) char * %{ $result = SWIG_csharp_string_callback($1); %}
|
||||
|
||||
%typemap(out) void ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue