summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/return-address.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/basedefs/if/return-address.yml')
-rw-r--r--spec/rtems/basedefs/if/return-address.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/if/return-address.yml b/spec/rtems/basedefs/if/return-address.yml
new file mode 100644
index 00000000..6ce94694
--- /dev/null
+++ b/spec/rtems/basedefs/if/return-address.yml
@@ -0,0 +1,27 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+brief: |
+ Returns the return address of the current function.
+copyrights:
+- Copyright (C) 2019 embedded brains GmbH (http://www.embedded-brains.de)
+definition:
+ default: ${/c/if/null:/name}
+ variants:
+ - definition: |
+ ${/compiler/if/builtin-return-address:/name}(0)
+ enabled-by:
+ - defined(${/compiler/if/gnuc:/name})
+description: null
+enabled-by: true
+interface-type: macro
+links:
+- role: interface-placement
+ uid: header
+- role: interface-ingroup
+ uid: group
+name: RTEMS_RETURN_ADDRESS
+notes: null
+params: []
+return:
+ return: The return address of the current function.
+ return-values: []
+type: interface