scilab: display truncated name in long identifier name warnings
This commit is contained in:
parent
0278261604
commit
0e03e22e9d
1 changed files with 3 additions and 1 deletions
|
|
@ -734,7 +734,9 @@ public:
|
||||||
void checkIdentifierName(String *name) {
|
void checkIdentifierName(String *name) {
|
||||||
if (Len(name) > 24) {
|
if (Len(name) > 24) {
|
||||||
// Warning on too long identifiers
|
// Warning on too long identifiers
|
||||||
Swig_warning(WARN_LANG_IDENTIFIER, input_file, line_number, "Identifier %s exceeds 24 characters, it may be impossible to use it.\n", name);
|
Swig_warning(WARN_LANG_IDENTIFIER, input_file, line_number,
|
||||||
|
"Identifier name '%s' exceeds 24 characters, it is truncated to '%s'.\n",
|
||||||
|
name, DohNewStringWithSize(name, 24));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue