On Jul 28, 2009, at 3:25 PM, Eric Seidel wrote:

void doSomething(Foo* foo)
{
    ASSERT(foo);
}

As a side note, gcc should support nonnull attribute even for C++. That's a way to get some static analysis for free.

void doSomething(Foo* foo) __attribute__((nonnull));

Pierre.

[1] http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html


_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to