On Mon, 2012-09-10 at 15:28 -0400, Rafael Schloming wrote: > On Mon, Sep 10, 2012 at 3:23 PM, Andrew Stitcher <astitc...@redhat.com>wrote: > > > On Mon, 2012-09-10 at 15:01 -0400, Rafael Schloming wrote: > > > Can you comment on why you decided to inline it directly into the C > > header > > > files as opposed to splitting it out somehow? Given William's comment on > > > exceptions, it seems like it might well expand/evolve enough to make it > > > awkward to inline. > > > > This was partly for speed, and partly because I tend to think of C and C > > ++ as peer languages so that if you're using proton from C++ you would > > just use the same include files as using it from C. > > > > Isn't there a way to split out the C++ stuff but still use the same include > files, e.g. include the C++ stuff rather than inline it?
What would that gain? In any case if you mean have an extra #include inside the #ifdef __cplusplus that could certainly be added if the file got unmanageably large. A