Namespaces
Variants
Views
Actions

Error directive

From cppreference.com
< c‎ | preprocessor
Revision as of 16:46, 5 June 2013 by P12 (Talk | contribs)

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

Shows given message and renders program ill-formed.

Syntax

#error error_message

Explanation

After encountering #error directive, diagnostic message error_message 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