diff options
Diffstat (limited to 'src/include/compiler.h')
| -rw-r--r-- | src/include/compiler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h index 4924c7ef5..56a5f63d5 100644 --- a/src/include/compiler.h +++ b/src/include/compiler.h @@ -656,6 +656,13 @@ char __debug_disable(OBJECT) = ( DBGLVL_MAX & ~DBGLVL_DFLT ); #endif /* ASSEMBLY */ /** + * Array size + */ +#ifndef ASSEMBLY +#define ARRAY_SIZE(array) ( sizeof (array) / sizeof ( (array)[0] ) ) +#endif /* ASSEMBLY */ + +/** * @defgroup licences Licence declarations * * For reasons that are partly historical, various different files |
