Changed name of variable msg to swigMsg to avoid
potential name conflicts. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0e4b239b3e
commit
f6f61e8328
1 changed files with 2 additions and 2 deletions
|
|
@ -2006,11 +2006,11 @@ public:
|
|||
} while ((sibl = Getattr(sibl, "sym:nextSibling")));
|
||||
|
||||
Append(f->code, "fail:\n{\n");
|
||||
Printf(f->code, "const char* msg = \"Wrong # of arguments\";\n");
|
||||
Printf(f->code, "const char* swigMsg = \"Wrong # of arguments\";\n");
|
||||
Printf(f->code, "if ( argc <= %d ) msg = \"Wrong arguments\";\n", maxargs);
|
||||
Printf(f->code, "rb_raise(rb_eArgError,"
|
||||
"\"%%s for overloaded method '%s'.\\n"
|
||||
" Possible C/C++ prototypes are:\\n\"%s, msg);\n", methodName, protoTypes);
|
||||
" Possible C/C++ prototypes are:\\n\"%s, swigMsg);\n", methodName, protoTypes);
|
||||
Append(f->code, "}\nreturn Qnil;\n");
|
||||
|
||||
Delete(methodName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue