summaryrefslogblamecommitdiffstats
path: root/spec/rtems/basedefs/if/alloc-size.yml
blob: 85e9eb05b6e4dddfcd5dc2a44376ae99dcd2ee53 (plain) (tree)
1
2
3
4
5
6
7
8
                                                     
        

                                                                               


                                                                         
             



                                             
                                         

                 
                 




                           
            









                                                               
               
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
  Tells the compiler in a declaration that the memory allocation size parameter
  of this function is similar to malloc().
copyrights:
- Copyright (C) 2018 embedded brains GmbH (http://www.embedded-brains.de)
definition:
  default: ''
  variants:
  - definition: |
      __attribute__((__alloc_size__(_index)))
    enabled-by:
    - defined(${/compiler/if/gnuc:/name})
description: null
enabled-by: true
index-entries: []
interface-type: macro
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: group
name: RTEMS_ALLOC_SIZE
notes: null
params:
- description: |
    is the allocation size parameter index (starting with one).
  dir: null
  name: _index
return:
  return: null
  return-values: []
type: interface