Hi all,
I need some help with the following problem.
I have a C macro defined like this:
In my program, I am trying to use this macro to assign its value like this:Code:#define AB_MAX_us_OP(_____ec) (long)(AB_MAX_bits_AP(_____ec)*D_T_US)
but I receive the following error.Code:long find_window(void) { long window; window = AB_MAX_us_OP( APPLICATION_EC ); return window; }
error: expected identifier or ‘(’ before ‘long’
#define AB_MAX_us_OP(_____ec) (long)(AB_MAX_bits_AP(_____ec)*D_T_US)
^
I have used the same macro in another location but there I did not receive an error.
thanks,
zahid