| Paste number 94613: | How to make a ObjC++ class compatible with C |
| Pasted by: | Psy| |
| When: | 2 years, 1 hour ago |
| Share: | Tweet this! | http://paste.lisp.org/+2105 |
| 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.