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

                                                                               
           
                                                  
           




                    
           





                                                                                       
               
                                         

                 
                 




                           
            


                        







                                                                     
            
               
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
  Tells the compiler in a declaration that the memory allocation item count and
  item size parameter of this function is similar to calloc().
copyrights:
- Copyright (C) 2018 embedded brains GmbH & Co. KG
definition:
  default:
    attributes: null
    body: ''
    params: []
    return: null
  variants:
  - definition:
      attributes: null
      body: |
        __attribute__(( __alloc_size__( ${.:/params[0]/name}, ${.:/params[1]/name} ) ))
      params: []
      return: null
    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_2
notes: null
params:
- description: |
    is the allocation item count parameter index (starting with one).
  dir: null
  name: _count_index
- description: |
    is the allocation item size parameter index (starting with one).
  dir: null
  name: _size_index
return: null
type: interface