Keil Logo

COND Compiler Directive

Abbreviation

CO

Arguments

None.

Default

COND

µVision

Options — Listing — C Compiler Listing — Conditional.

Description

The COND directive includes lines omitted from compilation in the listing file. Line numbers and nesting levels are not output for lines excluded from the compilation.

The effect of this directive takes place one line after the preprocessor detects it.

See Also

NOCOND

Example

The following example shows the listing file for a source file compiled with the COND directive:

.
.
.
stmt level  source
   1        extern unsigned char  a, b;
   2               unsigned char     c;
   3
   4        main()
   5        {
   6   1    #if defined (VAX)
              c = 13;
            #elif defined (_ _TIME_ _)
   9   1      b = 14;
  10   1      a = 15;
  11   1    #endif
  12   1    }
.
.
.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.