I am trying to come up with a macro to do something like the following,
MY_MACRO(type,name,args...)
MY_MACRO(int,_array,1,2,3)
and expand to,
int _array[] = {1,2,3};
coll* __array = my_call(&array[0],&array[1],&array[2]);
is this possible with/without compiler specific magic?
my_call expects variable number of arguments and I do not want to pass the array directly.
EDIT: I am already using the accepted answer from the following SO question for var args,
Macro returning the number of arguments it is given in C?
So I can find how many elements are in the array.