Skip to content

Instantly share code, notes, and snippets.

@Br1an-Boyle
Created July 14, 2015 14:41
Show Gist options
  • Save Br1an-Boyle/f5f6c50b0416ef7663d0 to your computer and use it in GitHub Desktop.
Save Br1an-Boyle/f5f6c50b0416ef7663d0 to your computer and use it in GitHub Desktop.
header=$SRCROOT/NamespacedDependencies.h
prefix="SIGMAPOINT"
echo "Generating $header from $CODESIGNING_FOLDER_PATH..."
echo "// Namespaced Header
#ifndef __NS_SYMBOL
// We need to have multiple levels of macros here so that __NAMESPACE_PREFIX_ is
// properly replaced by the time we concatenate the namespace prefix.
#define __NS_REWRITE(ns, symbol) ns ## _ ## symbol
#define __NS_BRIDGE(ns, symbol) __NS_REWRITE(ns, symbol)
#define __NS_SYMBOL(symbol) __NS_BRIDGE($prefix, symbol)
#endif
" > $header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment