Fix varargs.

Allow manual construction of entire result octave_value_list.
Make octrun.swg conform to style conventions.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Xavier Delacour 2008-03-20 23:23:38 +00:00
commit fe15a5a87c
3 changed files with 1146 additions and 1006 deletions

File diff suppressed because it is too large Load diff

View file

@ -44,6 +44,15 @@
}
%typecheck(SWIG_TYPECHECK_SWIGOBJECT) SWIG_Object "$1 = (*$input).is_defined();";
%typecheck(SWIG_TYPECHECK_SWIGOBJECT) octave_value_list "$1 = true;";
%typemap(in) (octave_value_list varargs,...) {
for (int j=$argnum-1;j<args.length();++j)
$1.append(args(j));
}
%typemap(out) octave_value_list {
_outp->append($1);
}
/*
// Smart Pointers