A
Anonymous
I have a class that needs to be accesed by a C API. I need to expose
some private methods to the C API :
#ifdef __cplusplus
extern "C"
#endif
void peek(Object_Handle handle);
void poke(Object_Handle handle);
#ifdef __cplusplus
}
#endif
class ToBeFlattened
{
public:
//compiler barfs at the next two lines (mangled names?)
//I also cant use the extern C decoration ...
friend __stdcall void peek();
friend __stdcall void poke();
ToBeFlattened();
foo();
bar();
private:
void take_a_peek() const
void poke_all_you_want();
};
some private methods to the C API :
#ifdef __cplusplus
extern "C"
#endif
void peek(Object_Handle handle);
void poke(Object_Handle handle);
#ifdef __cplusplus
}
#endif
class ToBeFlattened
{
public:
//compiler barfs at the next two lines (mangled names?)
//I also cant use the extern C decoration ...
friend __stdcall void peek();
friend __stdcall void poke();
ToBeFlattened();
foo();
bar();
private:
void take_a_peek() const
void poke_all_you_want();
};