[PATCH] libtest: Add T_thread_switch_record()

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 10 10:04:06 UTC 2020


On 10/08/2020 12:01, Sebastian Huber wrote:
> +#if defined(__GNUC__) || __STDC_VERSION__ >= 199409L
> +#define T_ZERO_LENGH_ARRAY
> +#define T_ZERO_LENGH_ARRAY_EXTENSION(n) (n)
> +#else
> +#define T_ZERO_LENGH_ARRAY 0
This should be

#define T_ZERO_LENGH_ARRAY 1

> +#define T_ZERO_LENGH_ARRAY_EXTENSION(n) ((n) - 1)
> +#endif


More information about the devel mailing list