blob: 427d213c3af927ee19a24a7876a10079d10a2775 (
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
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
brief: |
Gets the pointer reference type.
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
- Copyright (C) 2014 Paval Pisa
definition:
default:
attributes: null
body: ''
params: []
return: null
variants:
- definition:
attributes: null
body: |
${/compiler/if/typeof:/name}( ${.:/params[0]/name}( union { int _z; ${/compiler/if/typeof:/name}( ${.:/params[1]/name} ) _x; } ){ 0 }._x )
params: []
return: null
enabled-by:
- defined(${/compiler/if/gnuc:/name})
description: |
The reference type idea is based on libHX by Jan Engelhardt.
enabled-by: true
index-entries: []
interface-type: macro
links:
- role: interface-placement
uid: header
- role: interface-ingroup
uid: group
name: RTEMS_TYPEOF_REFX
notes: null
params:
- description: |
is the pointer indirection level expressed in ``*``.
dir: null
name: _level
- description: |
is the reference target type.
dir: null
name: _target
return:
return: |
Returns the type of a pointer reference of the specified level to the specified type.
return-values: []
type: interface
|