Fix UTL typecheck macro for a function taking char[] or const
char[] (SF#1820132). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10043 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ff4bfe41e7
commit
d1dabb7231
2 changed files with 6 additions and 2 deletions
|
|
@ -236,7 +236,7 @@
|
|||
|
||||
|
||||
/* ------------------------------------------------------------
|
||||
* Fix size Character array Char[ANY] handling
|
||||
* Fixed size Character array Char[ANY] handling
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
/* memberin and globalin typemaps */
|
||||
|
|
@ -354,7 +354,7 @@
|
|||
%typemap(typecheck,noblock=1,precedence=StringCode,
|
||||
fragment=#SWIG_AsCharArray)
|
||||
Char [ANY], const Char[ANY] {
|
||||
int res = SWIG_AsCharArray($input, (Char *)0, $1_dim0);
|
||||
int res = SWIG_AsCharArray($input, (Char *)0, 0);
|
||||
$1 = SWIG_CheckState(res);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue