I don't understand why I can use
---------
POINT point_list[1] = { POStoFIXED(10.0, 10.0, 0.0); }
---------
But not
---------
POINT point_list[1];
* * *
point_list[0] = POStoFIXED(10.0, 10.0, 0.0);
---------
Performing the second example results in GCC giving me "parse error before { " on any line with POStoFIXED. I understand that POStoFIXED is just a macro that returns an array sequence, and I guess it doesn't make sense to do this:
point_list[0] = { 10.0, 10.0, 10.0 };
But, if I can't do that, that means I'll never be able to assign a new vector to any polygon with POStoFIXED; I'd have to do it with individual elements of the array (because point_list would actually be a multidimensional array, I guess...), and I know I'm kinda new to C, but...it just doesn't seem right that I can't assign a new vector to the array by index. Am I doing something wrong?
---------
POINT point_list[1] = { POStoFIXED(10.0, 10.0, 0.0); }
---------
But not
---------
POINT point_list[1];
* * *
point_list[0] = POStoFIXED(10.0, 10.0, 0.0);
---------
Performing the second example results in GCC giving me "parse error before { " on any line with POStoFIXED. I understand that POStoFIXED is just a macro that returns an array sequence, and I guess it doesn't make sense to do this:
point_list[0] = { 10.0, 10.0, 10.0 };
But, if I can't do that, that means I'll never be able to assign a new vector to any polygon with POStoFIXED; I'd have to do it with individual elements of the array (because point_list would actually be a multidimensional array, I guess...), and I know I'm kinda new to C, but...it just doesn't seem right that I can't assign a new vector to the array by index. Am I doing something wrong?