scilab: use language specific warnings for too long identifier names
This commit is contained in:
parent
dead560910
commit
cc8b859162
2 changed files with 5 additions and 1 deletions
|
|
@ -232,6 +232,10 @@
|
|||
|
||||
/* please leave 700-719 free for D */
|
||||
|
||||
#define WARN_SCILAB_TRUNCATED_NAME 720
|
||||
|
||||
/* please leave 720-739 free for Scilab */
|
||||
|
||||
#define WARN_RUBY_WRONG_NAME 801
|
||||
#define WARN_RUBY_MULTIPLE_INHERITANCE 802
|
||||
|
||||
|
|
|
|||
|
|
@ -740,7 +740,7 @@ public:
|
|||
void checkIdentifierName(String *name) {
|
||||
if (Len(name) > 24) {
|
||||
// Warning on too long identifiers
|
||||
Swig_warning(WARN_LANG_IDENTIFIER, input_file, line_number,
|
||||
Swig_warning(WARN_SCILAB_TRUNCATED_NAME, 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