EasyManua.ls Logo

Texas Instruments TI-89 - Error Directive; Pragma Directive; Trigraph Sequences

Texas Instruments TI-89
334 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
100
Section 2: Compiler
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
2.16.7. Error Directive
A preprocessing directive of the following form causes the compiler to produce
an error message that includes the macro expansion of the specified sequence
of preprocessing tokens:
#error preprocessing_tokens
For example, the following sequence causes generation of the error message
shown below if SIZE is greater than 1024:
#if SIZE > 1024
#line 150 "test.c"
#error SIZE is greater than 1024!
#endif
test.c, 150: SIZE is greater than 1024!
2.16.8. Pragma Directive
A preprocessing directive of the following form is a pragma:
#pragma preprocessing_tokens
A pragma causes the compiler to behave in specified ways. The functionality of a
#pragma
directive is similar to that of a command line flag, except that the
specified behavior can be embedded in the source file and turned on and off
multiple times during a single compilation. If the directive following the
#pragma
is not recognized, the pragma directive is ignored. Refer to section
2.4 Pragma
Directives
, for a description of the pragmas supported by Sierra C.
2.16.9. Trigraph Sequences
A trigraph sequence is a sequence of three characters (??
x
) that maps into a
single character. They are used to facilitate the writing of C programs on
terminals that do not support all the characters required by the C language. The
trigraph conversion capabilities are enabled by specifying the
-T
flag on the
compiler command line. The supported trigraph sequences are as follows:
??=
#
??(
[
??/
\
??)
]
??'
^
??<
{
??!
|
??>
}
??-
~

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals