|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxc, libxenstore: make the headers C++-friendly
At 19:26 +0200 on 22 Jan (1358882774), Razvan Cojocaru wrote:
> >Not exactly - with all of this being macros, the _consumer_ of
> >DEFINE_RING_TYPES() could define private to rprivate (or
> >whatever is being liked best), with the respective uses of the
> >other macros using that field suitably placed inside the scope
> >of that #define.
>
> More to the point, #defining private to anything in C++ code is asking
> for (big) trouble.
Well, obviously you shouldn't leave it lying around. Can you do
something like
extern "C" {
#define private mumblywurzle
#include <xen/ring.h>
#undef private
}
Once again, this isn't C++. If there has to be an ugly workaround, put
it in the C++ code.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |