S
s.subbarayan
Dear all,
What does this following piece of code do?
#define CONVERT_SELF_PTR(type,in,out) \
(((in) != NULL) ? ((out) = (type *)(in), RETURN_OK) : ERROR_PARAM)
especially can someone let me understand why theres a comma in between
(out) = (type *)(in) and RETURN_OK in the expression ((out) = (type
*)(in), RETURN_OK)?
It will be also helpful if you could let me know the sequence in how
this expression in whole will be evaluated in steps.
Expecting all your help and advanced thanks for the same.
Regards,
s.subbarayan
What does this following piece of code do?
#define CONVERT_SELF_PTR(type,in,out) \
(((in) != NULL) ? ((out) = (type *)(in), RETURN_OK) : ERROR_PARAM)
especially can someone let me understand why theres a comma in between
(out) = (type *)(in) and RETURN_OK in the expression ((out) = (type
*)(in), RETURN_OK)?
It will be also helpful if you could let me know the sequence in how
this expression in whole will be evaluated in steps.
Expecting all your help and advanced thanks for the same.
Regards,
s.subbarayan