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:
parent
b697a8fc75
commit
fe15a5a87c
3 changed files with 1146 additions and 1006 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue