add missing %s
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5d36d0409e
commit
b7d49b3ae3
1 changed files with 3 additions and 3 deletions
|
|
@ -20,11 +20,11 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
|||
The default behavior is just to return the pointer value,
|
||||
so, be careful.
|
||||
*/
|
||||
#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
|
||||
%#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
|
||||
if (*alloc != SWIG_OLDOBJ)
|
||||
#else
|
||||
%#else
|
||||
if (*alloc == SWIG_NEWOBJ)
|
||||
#endif
|
||||
%#endif
|
||||
{
|
||||
*cptr = %new_copy_array(cstr, len + 1, char);
|
||||
*alloc = SWIG_NEWOBJ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue