add to %argument_fail

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8185 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-02 17:37:53 +00:00
commit 4048f282c9
12 changed files with 72 additions and 76 deletions

View file

@ -34,7 +34,7 @@
%typemap(in,noblock=1,fragment=frag) Type (Type val, int ecode = 0) {
ecode = asval_meth($input, &val);
if (!SWIG_IsOK(ecode)) {
%argument_fail(ecode, "$ltype", $argnum);
%argument_fail(ecode, "$ltype", $symname, $argnum);
}
$1 = %static_cast(val,$ltype);
}
@ -42,7 +42,7 @@
%typemap(in,noblock=1,fragment=frag) const Type & ($*ltype temp, Type val, int ecode = 0) {
ecode = asval_meth($input, &val);
if (!SWIG_IsOK(ecode)) {
%argument_fail(ecode, "$*ltype", $argnum);
%argument_fail(ecode, "$*ltype", $symname, $argnum);
}
temp = %static_cast(val, $*ltype);
$1 = &temp;