Fix multiply defined symbol in target language scope
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13869 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6f0d565241
commit
77d9ad5354
1 changed files with 2 additions and 2 deletions
|
|
@ -2991,8 +2991,8 @@ int Language::addSymbol(const String *s, const Node *n, const_String_or_char_ptr
|
|||
} else {
|
||||
Node *c = Getattr(symbols, s);
|
||||
if (c && (c != n)) {
|
||||
if (scope)
|
||||
Swig_error(input_file, line_number, "'%s' is multiply defined in the generated target language module in scope %s.\n", s, scope);
|
||||
if (scope && Len(scope) > 0)
|
||||
Swig_error(input_file, line_number, "'%s' is multiply defined in the generated target language module in scope '%s'.\n", s, scope);
|
||||
else
|
||||
Swig_error(input_file, line_number, "'%s' is multiply defined in the generated target language module.\n", s);
|
||||
Swig_error(Getfile(c), Getline(c), "Previous declaration of '%s'\n", s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue