Created
August 26, 2010 22:14
-
-
Save pmj/552367 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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