[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] libxc, libxenstore: make the headers C++-friendly



>>> On 22.01.13 at 18:26, Razvan Cojocaru <rzvncj@xxxxxxxxx> 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.

If done carelessly, sure. Which is why I said to wrap any users
of respective macros in inline functions or helper classes, and
have only the #include and these helpers in the scope where
private is re-#define-d (i.e. I thought it goes without saying that
you want to #undef private after those helpers).

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.