Revert removal of assertion.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11680 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
49935ee952
commit
fddbb30848
2 changed files with 1 additions and 2 deletions
|
|
@ -18,5 +18,3 @@ Version 1.3.41 (in progress)
|
||||||
#define FOO true
|
#define FOO true
|
||||||
#define BAR FOO && false
|
#define BAR FOO && false
|
||||||
|
|
||||||
2009-08-29: olly
|
|
||||||
[Perl] Remove bogus assertion (patch from David Fletcher).
|
|
||||||
|
|
|
||||||
|
|
@ -293,6 +293,7 @@ SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_
|
||||||
int newmemory = 0;
|
int newmemory = 0;
|
||||||
*ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
|
*ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
|
||||||
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
||||||
|
assert(own);
|
||||||
if (own)
|
if (own)
|
||||||
*own = *own | SWIG_CAST_NEW_MEMORY;
|
*own = *own | SWIG_CAST_NEW_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue