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:
Gonzalo Garramuno 2007-05-03 22:20:13 +00:00
commit f6f61e8328

View file

@ -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);