Using v1.99C - zcc +embedded -vn -clib=new test.c -o test
Code: Select all
#define SIZE 4
uint8_t data[] = {0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3};
uint16_t *frames[] = {data+(SIZE*0),data+(SIZE*1),data+(SIZE*2),data+(SIZE*3)};
Encasing each element like so (data+(SIZE*0)) throws:Error:Missing token, expecting } got +
Does it assume that the symbol is unreliable at compile time or something?Error:Expecting constant expression
Even doing data+0 throws the error.