summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/alignof-0.yml
blob: 3c49d9cc327956904d83eb4e96bb0f1e9d3433c9 (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
24
25
26
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
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