On Tue, 27 Nov 2007, 12:05:36 +0100, Andrew Beekhof wrote:
> On Nov 27, 2007, at 10:26 AM, Manfred Hollstein wrote:
> [...]
> >#ifdef __cplusplus
> >extern "C" {
> ># define class       __fake_class
> ># define delete      __fake_delete
> ># define new __fake_new
> >// Add other defines for any conflicting C++ keyword
> >#endif
> >#include "hb_api.h"
> >#ifdef __cplusplus
> >}
> >#endif
> >
> 
> neat trick :)

This way you can even get access to private members or fields :-D

#define private public
#include <iostream>

But, this is very badly abusing the preprocessor...

Cheers.

l8er
manfred
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to