summaryrefslogblamecommitdiffstats
path: root/spec/rtems/basedefs/req/static-assert-0.yml
blob: 912bff40cf6fc9d5e535d24cd848aa93137c67c6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                     
                                                  
                
                         
      
                          
                          

               
                            











                                                                    
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
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