blob: ae1f95fb2d54ca77c80346ce60881f9a375d541c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
functional-type: function
links:
- role: interface-function
uid: ../if/static-assert
rationale: null
references: []
requirement-type: functional
text: |
When the argument ${../if/static-assert:/params[0]/name} after
applying all possible C pre-processor substitutions to its
value results in a valid C expression of integral type,
and this expression can be evaluated at compile time,
and the argument ${../if/static-assert:/params[1]/name} which
may or may not undergo C pre-processor substitutions results
into a valid C identifier,
the ${../if/static-assert:/name} macro shall cause the compiler to
produce a compilation error if the expression resulting from
${../if/static-assert:/params[0]/name} evaluates to 0.
type: requirement
|