platform_external_dtc/tests/line_directives.dts
Stephen Warren 1b6d1941dc dtc: cpp co-existence: add support for #line directives
Line control directives of the following formats are supported:
    #line LINE "FILE"
    # LINE "FILE" [FLAGS]

This allows dtc to consume the output of pre-processors, and to provide
error messages that refer to the original filename, including taking
into account any #include directives that the pre-processor may have
performed.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
2012-09-28 09:24:39 -05:00

11 lines
135 B
Text

/dts-v1/;
/* common format */
#line 3 "foo.dts"
/* newer gcc format */
# 9 "baz.dts" 1
/* flags are optional */
# 6 "bar.dts"
/ {
};