fix various missing INCREF/DECREF and other to run clean with fpectl

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-15 23:29:10 +00:00
commit 174c1f84a5
3 changed files with 8 additions and 10 deletions

View file

@ -138,10 +138,10 @@
%define %ptr_typecheck_typemap(check,asptr_meth,frag,Type...)
%typemap(typecheck,precedence=check,fragment=frag)
Type *
"$1 = asptr_meth($input, (Type**)(0));";
"$1 = asptr_meth($input, (Type**)(0)) != 0;";
%typemap(typecheck,precedence=check,fragment=frag)
Type, const Type&
"Type *ptr; $1 = asptr_meth($input, &ptr) && ptr;";
"$1 = asptr_meth($input, (Type**)(0)) != 0;";
%enddef