Tool/software:
Hi there,
I'm trying to use static_assert() in my code. When I add it and the assert expression is true, it works fine. When the expression is false, I get the error message:
error #95: the size of an array must be greater than zero
The code is
#include "assert.h"
void test(void)
{
static_assert(1==2,"This is a test");
}
I am using CCS v12.8.0.00012 and compiler TI v22.6.1.LTS
Thanks
Andrew