don't use in error messages, it can generate extra entries in the symbol table

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6556 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-29 22:25:18 +00:00
commit ddbcd6e42d
3 changed files with 24 additions and 21 deletions

View file

@ -11,9 +11,9 @@
int res = asptr_meth($input, &ptr);
if (!res) {
if (!PyErr_Occurred())
SWIG_type_error(SWIG_TypePrettyName($&1_descriptor), $input);
SWIG_type_error("$basetype", $input);
} else if (!ptr) {
SWIG_null_ref(SWIG_TypePrettyName($&1_descriptor));
SWIG_null_ref("$basetype");
}
if (SWIG_arg_fail($argnum)) SWIG_fail;
$1 = *ptr;
@ -24,9 +24,9 @@
res = asptr_meth($input, &ptr);
if (!res) {
if (!PyErr_Occurred())
SWIG_type_error(SWIG_TypePrettyName($1_descriptor), $input);
SWIG_type_error("$basetype", $input);
} else if (!ptr) {
SWIG_null_ref(SWIG_TypePrettyName($1_descriptor));
SWIG_null_ref("$basetype");
}
if (SWIG_arg_fail($argnum)) SWIG_fail;
$1 = ptr;
@ -44,11 +44,11 @@
int res = asptr_meth($input, &ptr);
if (!res) {
if (!PyErr_Occurred())
SWIG_type_error(SWIG_TypePrettyName($1_descriptor), $input);
SWIG_type_error("$basetype", $input);
SWIG_append_msg(" C/C++ variable '$name'");
return 1;
} else if (!ptr) {
SWIG_null_ref(SWIG_TypePrettyName($1_descriptor));
SWIG_null_ref("$basetype");
SWIG_append_msg(" C/C++ variable '$name'");
return 1;
}