Skip to content

Instantly share code, notes, and snippets.

@pmj
Created August 26, 2010 22:14
Show Gist options
  • Save pmj/552367 to your computer and use it in GitHub Desktop.
Save pmj/552367 to your computer and use it in GitHub Desktop.
// macro for declaring members with C++ types in Objective-C++ classes which should be #import-able by Objective-C
#ifdef __cplusplus
#define CPPCLASS(ns, cname) ns :: cname
#else
#define CPPCLASS(ns, cname) struct CPP_ ## ns ## _ ## cname
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment