Rick Mann
2017-12-04 22:47:24 UTC
I have to use some C header file that #defines some string constants. Is there an equivalent to CFSTR() that constructs NSString literals? E.g.,
#define NSSTR(s) (@ ## s) <-- magic; this doesn't work
#define kSomeCStringConstant "foo"
...
NSSTR(kSomeCStringConstant)
TIA,
--
Rick Mann
***@latencyzero.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-***@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/gegs%40ml-in.narkive.net
This email sent to ***@ml-in.narkive.net
#define NSSTR(s) (@ ## s) <-- magic; this doesn't work
#define kSomeCStringConstant "foo"
...
NSSTR(kSomeCStringConstant)
TIA,
--
Rick Mann
***@latencyzero.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-***@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/gegs%40ml-in.narkive.net
This email sent to ***@ml-in.narkive.net