diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-04 08:08:10 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-04 08:08:10 -0600 |
commit | f2978da2ca86a9eff1bed2287801e99f131ffd8d (patch) | |
tree | 168afdbbe72365be494895ea7dd944e1439bd5fa /lib9p/internal.h | |
parent | 5a4f671686dc893350dc6fd40ab769504a334ed9 (diff) |
fixup array_len
Diffstat (limited to 'lib9p/internal.h')
-rw-r--r-- | lib9p/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib9p/internal.h b/lib9p/internal.h index d1c36cf..40cfcee 100644 --- a/lib9p/internal.h +++ b/lib9p/internal.h @@ -26,6 +26,7 @@ static_assert(CONFIG_9P_MAX_ERR_SIZE + CONFIG_9P_MAX_MSG_SIZE + 2*CONFIG_9P_MAX_ #define UNUSED(name) /* name __attribute__((unused)) */ #define ALWAYS_INLINE inline __attribute__((always_inline)) #define FLATTEN __attribute__((flatten)) +#define ARRAY_LEN(arr) (sizeof(arr)/sizeof((arr)[0])) /* types **********************************************************************/ |