]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/examples_compile.c
ccanlint: add #line directives to examples.
[ccan] / tools / ccanlint / tests / examples_compile.c
index 0da9d757b680a39052d5bedd078b09a32a9ac344..a43608d640200a125fec9e2c780d88dad6728880 100644 (file)
@@ -204,7 +204,8 @@ static bool looks_internal(char **lines, char **why)
                const char *line = lines[i] + strspn(lines[i], " \t");
                unsigned len = strspn(line, IDENT_CHARS);
 
-               if (!line[0] || cisspace(line[0]) || strstarts(line, "//"))
+               if (!line[0] || cisspace(line[0]) || strstarts(line, "//")
+                   || strstarts(line, "#line"))
                        continue;
 
                assert(line[strlen(line)-1] != '\n');