| 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: |
#ifdef __cplusplus
#define CXX_TYPE(x) x
#else
#define CXX_TYPE(x) void*
#endif
@interface MyClass : NSObject
{
CXX_TYPE(std::string *) cxx_str;
}
@endThis paste has no annotations.