Skip to main content

#endif

Concludes a set of preprocessor conditions.

Description

This macro preprocessor directive concludes a set of preprocessor conditions. It can follow #ifDef, #ifUnDef, #if, #elseIf, and #else. It has the form:

  // #ifDef, #if, or #else specifying the beginning of a condition
  // subsequent indented lines for specified actions
#endif

The #endif directive keyword should appear on a line by itself. Anything following #endif on the same line is considered a comment and is not parsed.

For an example, see #if.

FeedbackOpens in a new tab