# include <errno.h>
# include "llbasic.h"
# include "llmain.h"
+# include "cpperror.h"
# include "version.h"
/* Don't allow possibly-recursive assertion failures. */
}
}
+bool xcppoptgenerror (char *srcFile, int srcLine,
+ flagcode o,
+ /*@only@*/ cstring s,
+ cppReader *pfile)
+{
+ bool res = FALSE;
+ fileloc loc = cppReader_getLoc (pfile);
+
+ if (context_flagOn (o, loc))
+ {
+ if (xlloptgenerror (srcFile, srcLine, o, s, loc))
+ {
+ cppReader_printContainingFiles (pfile);
+ res = TRUE;
+ }
+ }
+ else
+ {
+ cstring_free (s);
+ }
+
+ fileloc_free (loc);
+
+ return res;
+}
+
bool xlloptgenerror (char *srcFile, int srcLine,
flagcode o, /*@only@*/ cstring s, fileloc loc)
{