I am initializing an array in two different ways depending a macro:
# if feature_enabled
const int v[4] = {1, 2, 3, 4};
#else
const int v[5] = {0, 1, 2, 3, 4};
#endif
The problem is that the data in the assignment is actually large matrices, and for various reasons it's not a good solution to just copy the data with a minor modification (just one more element at the beginning of the array.)
I was wondering if there is a way to do the same thing that I did here, without essentially duplicating the last n-1 elements.