diff options
Diffstat (limited to 'spec/rtems/basedefs/if/array-size.yml')
-rw-r--r-- | spec/rtems/basedefs/if/array-size.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/if/array-size.yml b/spec/rtems/basedefs/if/array-size.yml new file mode 100644 index 00000000..61131d9d --- /dev/null +++ b/spec/rtems/basedefs/if/array-size.yml @@ -0,0 +1,28 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +brief: | + Returns the element count of the specified array. +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +definition: + default: | + (sizeof(_array) / sizeof((_array)[0])) + variants: [] +description: null +enabled-by: true +interface-type: macro +links: +- role: interface-placement + uid: header +- role: interface-ingroup + uid: group +name: RTEMS_ARRAY_SIZE +notes: null +params: +- description: | + is the name of the array. + dir: null + name: _array +return: + return: The element count of the specified array. + return-values: [] +type: interface |