bad spelling in warning

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2003-12-12 06:09:53 +00:00
commit 2f45350a89

View file

@ -376,7 +376,9 @@ void emit_action(Node *n, Wrapper *f) {
String* dirdecl = NewStringf("%s *darg = 0", dirname);
Wrapper_add_local(f, "darg", dirdecl);
Printf(f->code, "darg = dynamic_cast<%s *>(arg1);\n",dirname);
Printf(f->code, "if (!darg) SWIG_exception(SWIG_RuntimeError,\"accesing protected member %s\");\n",Getattr(n,"name"));
Printf(f->code, "if (!darg) SWIG_exception(SWIG_RuntimeError,"
"\"accessing protected member %s in %s\");\n",
Getattr(n,"name"), symname);
Replace(action, "arg1", "darg", DOH_REPLACE_FIRST);
Delete(dirname);
Delete(dirdecl);