Namespaces
Variants
Views
Actions

Error directive

From cppreference.com
< cpp‎ | preprocessor
Revision as of 11:28, 22 April 2011 by WikiSysop (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/preprocessor/sidebar Shows given message and renders program ill-formed.

Syntax

#error Template:sparam

Explanation

After encountering #error directive, diagnostic message Template:sparam is shown and the program is rendered ill-formed (the compilation is stopped).

error_message can consist of several words not necessarily in quotes.

See also

warning directive