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
|
|
@ -51,6 +51,7 @@
|
||||||
#define WARN_PP_EVALUATION 202
|
#define WARN_PP_EVALUATION 202
|
||||||
#define WARN_PP_INCLUDEALL_IMPORTALL 203
|
#define WARN_PP_INCLUDEALL_IMPORTALL 203
|
||||||
#define WARN_PP_CPP_WARNING 204
|
#define WARN_PP_CPP_WARNING 204
|
||||||
|
#define WARN_PP_CPP_ERROR 205
|
||||||
|
|
||||||
/* -- C/C++ Parser -- */
|
/* -- C/C++ Parser -- */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1526,7 +1526,7 @@ Preprocessor_parse(String *s)
|
||||||
} else if (StringEqual(id,k_error)) {
|
} else if (StringEqual(id,k_error)) {
|
||||||
if (allow) {
|
if (allow) {
|
||||||
if (error_as_warning) {
|
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 {
|
} else {
|
||||||
Swig_error(Getfile(s),Getline(id),"%s\n",value);
|
Swig_error(Getfile(s),Getline(id),"%s\n",value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue