Name

#else directive — Else for conditional compilation

Synopsis

#else

The #else directive marks a region of conditional compilation. Every #else must be paired with an introductory directive: #if, #ifdef, or #ifndef. There can be any number of intervening #elif directives. If the initial condition was false (0), and every subsequent #elif condition is false, statements that follow the #else directive are compiled until the corresponding #endif directive is reached.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.