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:
Olly Betts 2009-09-03 11:31:39 +00:00
commit fddbb30848
2 changed files with 1 additions and 2 deletions

View file

@ -18,5 +18,3 @@ Version 1.3.41 (in progress)
#define FOO true
#define BAR FOO && false
2009-08-29: olly
[Perl] Remove bogus assertion (patch from David Fletcher).

View file

@ -293,6 +293,7 @@ SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_
int newmemory = 0;
*ptr = SWIG_TypeCast(tc,voidptr,&newmemory);
if (newmemory == SWIG_CAST_NEW_MEMORY) {
assert(own);
if (own)
*own = *own | SWIG_CAST_NEW_MEMORY;
}