[petsc-dev] macro wrappers around functions to caste suck
Jed Brown
jedbrown at mcs.anl.gov
Fri Apr 5 21:34:34 CDT 2013
On Fri, Apr 5, 2013 at 9:28 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> The biggest mistake of C was CPP
>
> Hey, we can eliminate the currently needed (PetscObject) cast in a
> bunch of places with this horrible trick.
>
I thought you liked the explicitness of that cast.
> This actually doesn't introduce any more macros, its the same number
> with more reasonable naming.
>
Sure, it just uses #undef. I have no problem with changing it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130405/9d939cea/attachment.html>
More information about the petsc-dev
mailing list