I have this const array of function pointers:
const callback_t callbacks[] =
{
    func1,
    func2,
    func3,
    func4,
    func5
};
and I would like to add C Compile-Time assert to ensure that func1 is placed first within the array. Something like that:
C_ASSERT(callbacks[0] == func1);
after pre-preocessor stage this is expanded to:
extern char __C_ASSERT__272[( callbacks[0] == func1)?1:-1] __attribute__((unused))
but I'm getting compilation error:
error: variably modified '__C_ASSERT__272' at file scope
 
    