15-09-2016, 07:39 AM
rgamble Wrote:Does the following example violate Rule 11.9?There is a note in rule 11.9 that says:
Code:#define FOO NULL
int32_t *p1 = FOO;
Quote:a null pointer constant of the form (void*)0 is permitted, whether or not it was expanded from NULLThere is also the following sample code:
Code:
#define MY_NULL_2 (void*)0
if (p2 == MY_NULL_2)/*compliant*/
<t></t>