Add newmemory parameter for SWIG_TypeCast
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c47f473b3c
commit
a91e4906b5
12 changed files with 51 additions and 13 deletions
|
|
@ -70,6 +70,7 @@
|
|||
#define SWIG_GetConstant SWIG_GetConstantObj
|
||||
#define SWIG_Tcl_GetConstant SWIG_Tcl_GetConstantObj
|
||||
|
||||
#include "assert.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
@ -166,7 +167,11 @@ SWIG_Tcl_ConvertPtrFromString(Tcl_Interp *interp, const char *c, void **ptr, swi
|
|||
if (flags & SWIG_POINTER_DISOWN) {
|
||||
SWIG_Disown((void *) *ptr);
|
||||
}
|
||||
*ptr = SWIG_TypeCast(tc,(void *) *ptr);
|
||||
{
|
||||
int newmemory = 0;
|
||||
*ptr = SWIG_TypeCast(tc,(void *) *ptr,&newmemory);
|
||||
assert(!newmemory); /* newmemory handling not yet implemented */
|
||||
}
|
||||
}
|
||||
return SWIG_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue