Paste number 94614: How to make a ObjC++ class compatible with C

Paste number 94614: How to make a ObjC++ class compatible with C
Pasted by: Psy|
When:1 month, 1 week ago
Share:Tweet this! | http://paste.lisp.org/+2106
Channel:#macosxdev
Paste contents:
Raw Source | XML | Display As
#ifdef __cplusplus
#define CXX_TYPE(x) x
#else
#define CXX_TYPE(x) void*
#endif

@interface MyClass : NSObject
{
    CXX_TYPE(std::string *) cxx_str;
}
@end

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.