Missing char[] typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
22f81ece7c
commit
0901b50f9d
1 changed files with 10 additions and 0 deletions
|
|
@ -186,6 +186,16 @@ namespace std {
|
|||
else $1[0] = 0;
|
||||
}
|
||||
|
||||
%typemap(memberin) char [] {
|
||||
if ($input) strcpy($1,$input);
|
||||
else $1[0] = 0;
|
||||
}
|
||||
|
||||
%typemap(globalin) char [] {
|
||||
if ($input) strcpy($1,$input);
|
||||
else $1[0] = 0;
|
||||
}
|
||||
|
||||
/* memberin typemap for arrays. */
|
||||
|
||||
%typemap(memberin) SWIGTYPE [ANY] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue