Skip to content

Instantly share code, notes, and snippets.

@rizo
Created January 24, 2013 14:10
Show Gist options
  • Save rizo/4622064 to your computer and use it in GitHub Desktop.
Save rizo/4622064 to your computer and use it in GitHub Desktop.
// http://rentzsch.tumblr.com/post/40806448108/ns-poor-mans-namespacing-for-objective-c
#ifndef NS
#ifdef NS_NAMESPACE
#define JRNS_CONCAT_TOKENS(a,b) a##_##b
#define JRNS_EVALUATE(a,b) JRNS_CONCAT_TOKENS(a,b)
#define NS(original_name) JRNS_EVALUATE(NS_NAMESPACE, original_name)
#else
#define NS(original_name) original_name
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment