- #1
handsomecat
- 70
- 0
In the main body of my code i have something like this:
I want to replace this with a macro
and call it in from my code
But i get the error message saying "structure has no member named `Cmin_vec'.
how should I go about doing it?
Code:
Cmin_vec[1][1][1] = rptr->cmin[3];
I want to replace this with a macro
Code:
#define COPY_CMIN( cmin, rptr) (cmin)[1][1][1] = (rptr)->cmin[3]
and call it in from my code
Code:
COPY_CMIN( Cmin_vec, rptr)
But i get the error message saying "structure has no member named `Cmin_vec'.
how should I go about doing it?