On Sep 10, 2011, at 8:45 AM, Jed Brown wrote:

> If you forget to include this header, there are no warnings, but the array 
> pointer shows up as NULL on the C side (currently causing a seg-fault). Is 
> there a way to check for this at compile time?

   Is ptr null or *ptr? It seems to mean checking for the nullness on the C 
side is better than nothing even if it doesn't always work.

    Barry

> 
> I just lost some time tracking this down, so we need some sort of a check. 
> It's trivial to do at run-time, though I don't know if having the pointer 
> show up as NULL is a gfortran artifact or something more general.


Reply via email to