summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/weak.yml
blob: 947998cbeacfd247f75090891feaa9e20969a880 (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
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
  Tells the compiler in a function definition that this function should be
  weak.
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
definition:
  default: ''
  variants:
  - definition: |
      __attribute__(( __weak__ ))
    enabled-by:
    - defined(${/compiler/if/gnuc:/name})
description: |
  Use this attribute for function definitions.  Do not use it for function
  declarations.
enabled-by: true
index-entries: []
interface-type: define
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: group
name: RTEMS_WEAK
notes: null
type: interface