ensure %apply with char*, unsigned char* and signed char* works
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
468ad3c74b
commit
2d24918a97
8 changed files with 73 additions and 17 deletions
|
|
@ -126,8 +126,8 @@
|
|||
%typemap(out) double %{ $result = $1; %}
|
||||
|
||||
/* char * - treat as String */
|
||||
%typemap(in) char * %{ $1 = $input; %}
|
||||
%typemap(out) char * %{ $result = SWIG_csharp_string_callback($1); %}
|
||||
%typemap(in) char * %{ $1 = ($1_type)$input; %}
|
||||
%typemap(out) char * %{ $result = SWIG_csharp_string_callback((const char *)$1); %}
|
||||
|
||||
%typemap(out, null="") void ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue