From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/c/preprocessor%2Ferror.html | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 devdocs/c/preprocessor%2Ferror.html (limited to 'devdocs/c/preprocessor%2Ferror.html') diff --git a/devdocs/c/preprocessor%2Ferror.html b/devdocs/c/preprocessor%2Ferror.html deleted file mode 100644 index decd26b2..00000000 --- a/devdocs/c/preprocessor%2Ferror.html +++ /dev/null @@ -1,37 +0,0 @@ -

Diagnostic directives

Shows the given error message and renders the program ill-formed, or given warning message without affect the validity of the program(since C23).

-

Syntax

- - -
#error diagnostic-message (1)
#warning diagnostic-message (2) (since C23)

Explanation

-1) After encountering the #error directive, an implementation displays the message diagnostic-message and renders the program ill-formed (the compilation stops).
-2) Same as (1), except that the validity of the program is not affected and the compilation continues.

diagnostic-message can consist of several words not necessarily in quotes.

-

Notes

Before its standardization in C23, #warning has been provided by many compilers in all modes as a conforming extension.

-

Example

#if __STDC__ != 1
-#  error "Not a standard compliant compiler"
-#endif
- 
-#if __STDC_VERSION__ >= 202311L
-#  warning "Using #warning as a standard feature"
-#endif
- 
-#include <stdio.h>
-int main (void)
-{
-    printf("The compiler used conforms to the ISO C Standard !!");
-}

Possible output:

-
The compiler used conforms to the ISO C Standard !!

References

See also

-
C++ documentation for Diagnostic directives
-

- © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
- https://en.cppreference.com/w/c/preprocessor/error -

-
-- cgit v1.2.3