summaryrefslogblamecommitdiffstats
path: root/spec/rtems/basedefs/req/alignof-0.yml
blob: 48bdb9e835ad29a555ba49946d056e3cbeb42b98 (plain) (tree)
1
2
3
4
5
6
7
8

                                     
                                                  
                
                         
      
                          
                    




                                                                        
                            











                                                                               
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
enabled-by: true
functional-type: function
links:
- role: interface-function
  uid: ../if/alignof
rationale: |
  Note that if not ``__STDC_VERSION__ >= 201112L`` and neither
  ``__cplusplus >= 201103L``, the result of this call may return a value
  which is not appropriate for alignment.
references: []
requirement-type: functional
text: |
  When the code is compiled with a C compiler and
  the ``__STDC_VERSION__`` symbol is defined with version ``201112L`` or
  higher or
  the code is compiled with a C++ compiler
  and the ``__cplusplus`` symbol is defined with version ``201103L`` or higher,
  and the argument ${../if/alignof:/params[0]/name} is a type,
  and the argument ${../if/alignof:/params[0]/name} is not a function type,
  and the argument ${../if/alignof:/params[0]/name} is a complete type,
  the macro ${../if/alignof:/name} shall result in
  the alignment requirement in bytes required for any instance of the type.
type: requirement