summaryrefslogtreecommitdiff
path: root/Source/Preprocessor
diff options
context:
space:
mode:
authorMarcelo Matus <mmatus@acms.arizona.edu>2006-02-03 22:37:55 +0000
committerMarcelo Matus <mmatus@acms.arizona.edu>2006-02-03 22:37:55 +0000
commite70d0e09afd0f1e6f5c361d0cbff1415fc020d4f (patch)
treefe73072298833a5c3e3c887fcbe456fd8d7393be /Source/Preprocessor
parent9738e8da5a9a8ed456aa140a9ed3687e13827efe (diff)
downloadswig-e70d0e09afd0f1e6f5c361d0cbff1415fc020d4f.tar.gz
better error message for #error exit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8698 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Source/Preprocessor')
-rw-r--r--Source/Preprocessor/cpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Preprocessor/cpp.c b/Source/Preprocessor/cpp.c
index ff0bfd1a1..99930dcb0 100644
--- a/Source/Preprocessor/cpp.c
+++ b/Source/Preprocessor/cpp.c
@@ -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)) {