summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/alias-0.yml
blob: 3476f2f992d3cad01907eca1de338e9c4d5eb1ba (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
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
enabled-by: true
functional-type: function
links:
- role: interface-function
  uid: ../if/alias
rationale: null
references: []
requirement-type: functional
text: |
  When argument ${../if/alias:/params[0]/name} is a name of a function,
  and the macro ${../if/alias:/name} call is in the same compilation unit
  as the function,
  and the macro is not used in block scope,
  and the macro is used in this form:
  ``<return-type> newname([argument-type-list]) ${../if/alias:/name}(oldname)``;,
  and the ``<return-type>`` and ``argument-type-list`` match the
  signature of the function ``oldname``,
  and the code is compiled with the GNU C compiler,
  the ${../if/alias:/name} macro shall cause the compiler to create
  an additional name (``newname`` in the syntax) for the function
  given as argument ${../if/alias:/params[0]/name}.
type: requirement