Add suggestion to check block delimiter
The fix for #217 means that blocks of target code delimited by { } with '#' comments in now give errors (previously these lines were quietly discarded). The fix is generally to use %{ %} delimiters instead, so suggest this might be the issue in the error message to help users hitting this issue with wrappers which were apparently working before.
This commit is contained in:
parent
a2f803bb5a
commit
be4065531e
2 changed files with 2 additions and 2 deletions
|
|
@ -1771,7 +1771,7 @@ String *Preprocessor_parse(String *s) {
|
|||
} else if (Equal(id, "")) {
|
||||
/* Null directive */
|
||||
} else {
|
||||
Swig_error(Getfile(s), Getline(id), "Unknown SWIG preprocessor directive: %s\n", id);
|
||||
Swig_error(Getfile(s), Getline(id), "Unknown SWIG preprocessor directive: %s (if this is a block of target language code, delimit it with %%{ and %%})\n", id);
|
||||
}
|
||||
for (i = 0; i < cpp_lines; i++)
|
||||
Putc('\n', ns);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue