OAR

RTEMS GNU Tools On-Line Library


Conditional Syntax

PREV UP NEXT Bookshelf The C Preprocessor

1.5.2: Syntax of Conditionals

A conditional in the C preprocessor begins with a conditional directive: `#if', `#ifdef' or `#ifndef'. See Conditionals-Macros, for information on `#ifdef' and `#ifndef'; only `#if' is explained here.

  • If Basic conditionals using `#if' and `#endif'.
  • Else Including some text if the condition fails.
  • Elif Testing several alternative possibilities.

  • PREV UP NEXT Bookshelf The C Preprocessor

    Packaging copyright © 1988-2000 OAR Corporation
    Context copyright by each document's author. See Free Software Foundation for information.