diff options
Diffstat (limited to 'src/utils/utils.h')
-rw-r--r-- | src/utils/utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/utils.h b/src/utils/utils.h index 1c380f8..26c9a08 100644 --- a/src/utils/utils.h +++ b/src/utils/utils.h @@ -30,6 +30,10 @@ #define UNUSED(x) ((x)=(x)) #endif +#ifndef N_ELEMENTS +#define N_ELEMENTS(x) (sizeof((x)) / sizeof((x)[0])) +#endif + css_fixed number_from_lwc_string(lwc_string *string, bool int_only, size_t *consumed); |