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/error%2Fstatic_assert.html | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 devdocs/c/error%2Fstatic_assert.html (limited to 'devdocs/c/error%2Fstatic_assert.html') diff --git a/devdocs/c/error%2Fstatic_assert.html b/devdocs/c/error%2Fstatic_assert.html deleted file mode 100644 index 59b96576..00000000 --- a/devdocs/c/error%2Fstatic_assert.html +++ /dev/null @@ -1,23 +0,0 @@ -

static_assert

Defined in header <assert.h>
#define static_assert _Static_assert
-
(since C11)
(removed in C23)

This convenience macro expands to the keyword _Static_assert.

-

Example

#include <assert.h>
- 
-int main(void)
-{
-    static_assert(2 + 2 == 4, "2+2 isn't 4");   // well-formed
- 
-    static_assert(sizeof(int) < sizeof(char),   // compile-time error
-                  "this program requires that int is less than char");
-}

Notes

Since C23, static_assert is itself a keyword, which may also be a predefined macro, so <assert.h> no longer provides it.

-

References

See also

-
C++ documentation for Static Assertion
-

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

-
-- cgit v1.2.3