
Controlling the Preprocessor
2-27
C Compiler Description
2.5.5 Creating Custom Error Messages with the #error and #warn Directives
The standard #error preprocessor directive forces the compiler to issue a
diagnostic message and halt compilation. The compiler extends the #error di-
rective with a #warn directive. The #warn directive forces a diagnostic mes-
sage but does not halt compilation. The syntax of #warn is identical to that of
#error:
#
error
token-sequence
#
warn
token-sequence
2.5.6 Enabling Trigraph Expansion (
−
p? Option)
A trigraph is three characters that have a meaning (as defined by the ISO
646-1983 Invariant Code Set). On systems with limited character sets, these
characters cannot be represented. For example, the trigraph ??’ equates to
^. The ANSI C standard defines these sequences.
By default, the compiler does not recognize trigraphs. If you want to enable
trigraph expansion, use the
−
pg option. During compilation, trigraphs are
expanded to their corresponding single character. For more information about
trigraphs, see the ANSI specification, § 2.2.1.1.
2.5.7 Creating a Function Prototype Listing File (
−
pf Option)
When you use the
−
pf option, the preprocessor creates a file containing the
prototype of every function in all corresponding C files. Each function proto-
type file is named as its corresponding C file with a
.
pro extension.
Содержание TMS320C2x
Страница 8: ...viii...
Страница 69: ...2 47 C Compiler Description...
Страница 159: ...6 36...
Страница 226: ...8 6...
Страница 250: ...Index Index 14 Z z shell option 2 2 2 4 2 14 overriding with c option 4 5 overriding with n option 2 13...