[Mesa-dev] Mixing C & C++
Chad Versace
chad at chad-versace.us
Tue Nov 8 12:45:51 PST 2011
On 11/08/2011 12:30 PM, Jose Fonseca wrote:
> Second, it would really help to clearly distinguish headers that are meant to be used exclusive by C++ with a different suffix (e.g., .hpp). And leave .h for headers that are meant for joint C/C++ consuption.
>
> Take e.g., ../glsl/program.h, are these supposed to be C functions or C++ functions? There's no way to tell just from reading the headers. So it's not clear if those type/functions should be inside extern "C" {..} or not.
>
>
> Is this OK?
I agree. Pure C++ headers should have the .hpp extension. That would eliminate some unnecessary confusion.
--
Chad Versace
chad at chad-versace.us
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111108/56495312/attachment.pgp>
More information about the mesa-dev
mailing list