summaryrefslogtreecommitdiffstats
path: root/spec/if/rtems/basedefs/weak.yml
blob: aea07618516611fd1f39b9ed8f7910c959027edc (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
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(${/if/compiler/gnuc:/name})
description: |
  Use this attribute for function definitions.  Do not use it for function
  declarations.
enabled-by: true
interface-type: define
links:
- role: interface-placement
  uid: header
- role: interface-ingroup
  uid: group
name: RTEMS_WEAK
notes: null
type: interface