summaryrefslogblamecommitdiffstats
path: root/spec/rtems/basedefs/if/alignof.yml
blob: c0011137b7fc1b04c8523b4f539da5c9003ca681 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12



                                                     
                                                  
           





                                    
           





                                       
               


                                                  





                                        
               


                                                     




















                                                          
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:
      and:
      - defined( ${/compiler/if/cplusplus:/name} )
      - ${/compiler/if/cplusplus:/name} >= 201103L
  - definition:
      attributes: null
      body: |
        _Alignof( ${.:/params[0]/name} )
      params: []
      return: null
    enabled-by:
      and:
      - defined( ${/compiler/if/stdc-version:/name} )
      - ${/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