better error message for #error exit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8698 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
311f9c1f81
commit
7cd8dc269e
1 changed files with 2 additions and 2 deletions
|
|
@ -1528,9 +1528,9 @@ Preprocessor_parse(String *s)
|
||||||
} else if (StringEqual(id,kpp_error)) {
|
} else if (StringEqual(id,kpp_error)) {
|
||||||
if (allow) {
|
if (allow) {
|
||||||
if (error_as_warning) {
|
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 {
|
} 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)) {
|
} else if (StringEqual(id,kpp_line)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue