simplify output via macro SWIG_ArgError

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-07 17:37:13 +00:00
commit 863369cc41
2 changed files with 2 additions and 1 deletions

View file

@ -133,7 +133,7 @@
* ----------------------------------------------------------------------------- */
#define %error_block(Block...) %block(Block)
#define %default_code(code) ((code != SWIG_ERROR) ? code : SWIG_TypeError)
#define %default_code(code) SWIG_ArgError(code)
#define %argument_fail(code, type, name, argn) SWIG_exception_fail(%default_code(code), %argfail_fmt(type, name, argn))
#define %argument_nullref(type, name, argn) SWIG_exception_fail(SWIG_ValueError, %argnullref_fmt(type, name, argn))
#define %variable_fail(code, type, name) SWIG_exception_fail(%default_code(code), %varfail_fmt(type, name))