Correct warning message for wchar_t * typemaps
Use separate warning for char * and wchar_t * typemaps SWIGWARN_TYPEMAP_CHARLEAK_MSG and SWIGWARN_TYPEMAP_WCHARLEAK_MSG
This commit is contained in:
parent
f029beffe8
commit
72f7b82935
4 changed files with 14 additions and 3 deletions
|
|
@ -30,6 +30,7 @@ SWIG_strnlen(const char* s, size_t maxlen)
|
|||
|
||||
%include <typemaps/strings.swg>
|
||||
%typemaps_string(%checkcode(STRING), %checkcode(CHAR),
|
||||
SWIGWARN_TYPEMAP_CHARLEAK_MSG,
|
||||
char, Char, SWIG_AsCharPtrAndSize, SWIG_FromCharPtrAndSize,
|
||||
strlen, SWIG_strnlen,
|
||||
"<limits.h>", CHAR_MIN, CHAR_MAX)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue