...
Code Block |
---|
#define MY_PID getpid() |
PRE02-EX2: A macro that expands to an array reference using the array-subscript operator []
, or an expression designating a member of a structure or union object using either the member-access .
or ->
operators.
Code Block |
---|
#define NEXT_FREE block->next_free
#define CID customer_record.account.cid
#define TOOFAR array[MAX_ARRAY_SIZE]
|
Risk Assessment
Failing to parenthesize macro replacement lists can cause unexpected results.
...