]> andersk Git - splint.git/blobdiff - src/cppexp.c
Fixed line numbering when multi-line macro parameters are used.
[splint.git] / src / cppexp.c
index c19eb8bdb5a662e309e7ecd68fda2b703ab9065a..a41277e69c8a2d32750fbfa36ced2c543ef5557e 100644 (file)
@@ -434,7 +434,14 @@ struct operation cppexp_lex (cppReader *pfile)
   ic = cpplib_bufPeek (cppReader_getBufferSafe (pfile));
 
   c = (char) ic;
-  llassert (c != '#');
+
+  if  (c == '#') 
+    {
+      /* was: llassert (c != '#'); - Solaris uses this, attempt to continue anyway... */
+      cppReader_pedwarn (pfile, 
+                        message ("non-standard pre-processor directive: %c", c));
+    }
+
   DPRINTF (("Read: %c", c));
 
   if (c == '\n')
This page took 0.039729 seconds and 4 git commands to generate.