summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/have-member-same-type.yml
blob: 15cdd80fc43f988c9203bbd29dbb81c48153a2b9 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
  Checks if members of two types have compatible types.
copyrights:
- Copyright (C) 2017 embedded brains GmbH (http://www.embedded-brains.de)
definition:
  default:
    attributes: null
    body: |
      ${/c/if/true:/name}
    params: []
    return: null
  variants:
  - definition:
      attributes: null
      body: |
        ${/compiler/if/builtin-types-compatible-p:/name}(
          ${/compiler/if/typeof:/name}( ( (${.:/params[0]/name} *) 0 )->${.:/params[1]/name} ),
          ${/compiler/if/typeof:/name}( ( (${.:/params[2]/name} *) 0 )->${.:/params[3]/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_HAVE_MEMBER_SAME_TYPE
notes: null
params:
- description: |
    is the left hand side type.
  dir: null
  name: _t_lhs
- description: |
    is the left hand side member.
  dir: null
  name: _m_lhs
- description: |
    is the right hand side type.
  dir: null
  name: _t_rhs
- description: |
    is the right hand side member.
  dir: null
  name: _m_rhs
return:
  return: |
    Returns to true, if the members of two types have compatible types,
    otherwise false.
  return-values: []
type: interface