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:
Marcelo Matus 2006-02-03 22:37:55 +00:00
commit e70d0e09af

View file

@ -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)) {