better error message for #error exit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8698 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9738e8da5a
commit
e70d0e09af
1 changed files with 2 additions and 2 deletions
|
|
@ -1528,9 +1528,9 @@ Preprocessor_parse(String *s)
|
|||
} else if (StringEqual(id,kpp_error)) {
|
||||
if (allow) {
|
||||
if (error_as_warning) {
|
||||
Swig_warning(WARN_PP_CPP_ERROR,Getfile(s),Getline(id),"CPP #error, %s\n", value);
|
||||
Swig_warning(WARN_PP_CPP_ERROR,Getfile(s),Getline(id),"CPP #error \"%s\".\n", value);
|
||||
} else {
|
||||
Swig_error(Getfile(s),Getline(id),"CPP #error, %s\n", value);
|
||||
Swig_error(Getfile(s),Getline(id),"CPP #error \"%s\". Use the -cpperraswarn option to continue swig processing.\n", value);
|
||||
}
|
||||
}
|
||||
} else if (StringEqual(id,kpp_line)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue