summaryrefslogtreecommitdiffstats
path: root/spec/if/rtems/basedefs/have-member-same-type.yml
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-06 12:44:23 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-05-28 10:38:22 +0200
commit31a305f1d26256c5439d1dd552a4136848e841f0 (patch)
treef8c6584f4ec5ca2c98e94476da874fe066519a8d /spec/if/rtems/basedefs/have-member-same-type.yml
parentinterface: Support void functions (diff)
downloadrtems-central-31a305f1d26256c5439d1dd552a4136848e841f0.tar.bz2
spec: Add some interface items
Diffstat (limited to 'spec/if/rtems/basedefs/have-member-same-type.yml')
-rw-r--r--spec/if/rtems/basedefs/have-member-same-type.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/spec/if/rtems/basedefs/have-member-same-type.yml b/spec/if/rtems/basedefs/have-member-same-type.yml
new file mode 100644
index 00000000..1928c693
--- /dev/null
+++ b/spec/if/rtems/basedefs/have-member-same-type.yml
@@ -0,0 +1,47 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+copyrights:
+- Copyright (C) 2017 embedded brains GmbH (http://www.embedded-brains.de)
+enabled-by: []
+interface-brief: |
+ Evaluates to true if the specified members of two types have compatible
+ types, otherwise to false.
+interface-definition:
+ default: |
+ ${/if/c/true:/interface-name}
+ variants:
+ - definition: |
+ ${/if/compiler/builtin-types-compatible-p:/interface-name}(
+ ${/if/compiler/typeof:/interface-name}( ( (_t_lhs *) 0 )->_m_lhs ),
+ ${/if/compiler/typeof:/interface-name}( ( (_t_rhs *) 0 )->_m_rhs )
+ )
+ enabled-by:
+ - defined(${/if/compiler/gnuc:/interface-name})
+interface-description: null
+interface-name: RTEMS_HAVE_MEMBER_SAME_TYPE
+interface-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
+interface-return:
+ return: null
+ return-values: []
+interface-type: macro
+links:
+- role: interface-placement
+ uid: header
+- role: interface-ingroup
+ uid: /groups/api/basedefs
+type: interface