add code for #errors reported as #warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2acc32946b
commit
825a0e2685
2 changed files with 2 additions and 1 deletions
|
|
@ -1526,7 +1526,7 @@ Preprocessor_parse(String *s)
|
|||
} else if (StringEqual(id,k_error)) {
|
||||
if (allow) {
|
||||
if (error_as_warning) {
|
||||
Swig_warning(WARN_PP_CPP_WARNING,Getfile(s),Getline(id),"%s\n", value);
|
||||
Swig_warning(WARN_PP_CPP_ERROR,Getfile(s),Getline(id),"%s\n", value);
|
||||
} else {
|
||||
Swig_error(Getfile(s),Getline(id),"%s\n",value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue