FreeBSD/contrib/gcc/cp/call.c
/* Returns true iff T is a null pointer constant in the sense of
   [conv.ptr].  */
Returns true iff T is a null pointer constant in the sense of
[conv.ptr].
Returns true iff T is a null pointer constant in the sense of [ conv . ptr ] .
bool
null_ptr_cst_p (tree t)
{
  t = integral_constant_value (t);
  if (t == null_node)
    return true;
  if (CP_INTEGRAL_TYPE_P (TREE_TYPE (t)) && integer_zerop (t))
    {
      STRIP_NOPS (t);
      if (!TREE_CONSTANT_OVERFLOW (t))
	return true;
    }
  return false;
}
bool null_ptr_cst_p ( tree t ) { t = integral_constant_value ( t ) ; if ( t == null_node ) return true ; if ( CP_INTEGRAL_TYPE_P ( TREE_TYPE ( t ) ) && integer_zerop ( t ) ) { STRIP_NOPS ( t ) ; if ( ! TREE_CONSTANT_OVERFLOW ( t ) ) return true ; } return false ; }
Returns true iff T is a null pointer constant in the sense of
[conv.ptr].
Returns true iff T is a null pointer constant in the sense of [ conv . ptr ] .
/* [conv.ptr]

     A null pointer constant is an integral constant expression
     (_expr.const_) rvalue of integer type that evaluates to zero.  */