summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/weak-alias.yml
blob: 6a2bbe8fb60c85d7b99e04fab361669fbd292160 (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
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
  Instructs the compiler to generate a weak alias to the target function.
copyrights:
- Copyright (C) 2017 embedded brains GmbH (http://www.embedded-brains.de)
definition:
  default:
    attributes: null
    body: ''
    params: []
    return: null
  variants:
  - definition:
      attributes: null
      body: |
        __attribute__(( __weak__, __alias__( #${.:/params[0]/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_WEAK_ALIAS
notes: null
params:
- description: |
    is the target function name.
  dir: null
  name: _target
return: null
type: interface