summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/alignof.yml
blob: e9299228b26c08856d6c969956be3ab1bdafd3e1 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
  Gets the alignment requirement of the type.
copyrights:
- Copyright (C) 2021 embedded brains GmbH & Co. KG
definition:
  default:
    attributes: null
    body: |
      sizeof( ${.:/params[0]/name} )
    params: []
    return: null
  variants:
  - definition:
      attributes: null
      body: |
        alignof( ${.:/params[0]/name} )
      params: []
      return: null
    enabled-by:
    - ${/compiler/if/cplusplus:/name} >= 201103L
  - definition:
      attributes: null
      body: |
        _Alignof( ${.:/params[0]/name} )
      params: []
      return: null
    enabled-by:
    - ${/compiler/if/stdc-version:/name} >= 201112L
description: null
enabled-by: true
index-entries: []
interface-type: macro
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: group
name: RTEMS_ALIGNOF
notes: null
params:
- description: |
    is the type name to get the alignment requirement for.
  dir: null
  name: _type_name
return:
  return: |
    Returns the alignment requirement of the type.
  return-values: []
type: interface