summaryrefslogtreecommitdiffstats
path: root/spec/if/rtems/basedefs/pure.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/pure.yml
parentinterface: Support void functions (diff)
downloadrtems-central-31a305f1d26256c5439d1dd552a4136848e841f0.tar.bz2
spec: Add some interface items
Diffstat (limited to 'spec/if/rtems/basedefs/pure.yml')
-rw-r--r--spec/if/rtems/basedefs/pure.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/if/rtems/basedefs/pure.yml b/spec/if/rtems/basedefs/pure.yml
new file mode 100644
index 00000000..5ce7aadc
--- /dev/null
+++ b/spec/if/rtems/basedefs/pure.yml
@@ -0,0 +1,24 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+copyrights:
+- Copyright (C) 2011 On-Line Applications Research Corporation (OAR)
+enabled-by: []
+interface-brief: |
+ Tells the compiler in a function declaration that this function has no effect
+ except the return value and that the return value depends only on the value
+ of parameters and/or global variables.
+interface-definition:
+ default: ""
+ variants:
+ - definition: |
+ __attribute__((__pure__))
+ enabled-by:
+ - defined(${/if/compiler/gnuc:/interface-name})
+interface-description: null
+interface-name: RTEMS_PURE
+interface-type: define
+links:
+- role: interface-placement
+ uid: header
+- role: interface-ingroup
+ uid: /groups/api/basedefs
+type: interface