On Tuesday 24 July 2007 21:25:39 Andy Lester wrote:

> On Jul 24, 2007, at 8:56 PM, chromatic wrote:
> > I presume that the function always returns either PMCNULL or a
> > NameSpace PMC,
> > so checking if it's returned PMCNULL and returning PMCNULL in that
> > case seems
> > a little silly.

> Because I'm trying to get all the C code to be NONNULL as much as
> possible.

The code was:

        $1 = PMC_IS_NULL(ns) ? PMCNULL : ns;

If PMC_IS_NULL(ns) -- if it's PMCNULL -- then return PMCNULL.  Otherwise, 
return ns.  That is, return exactly what you were going to return anyway.

What am I missing here?

-- c

Reply via email to