summaryrefslogtreecommitdiffstats
path: root/src/include/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r--src/include/compiler.h7
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