Created
June 28, 2014 08:04
-
-
Save jhurliman/e4b4ada0eb22776e6c4c to your computer and use it in GitHub Desktop.
Compile-time string concatenation in Objective-C
This file contains hidden or 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
#ifdef DEBUG | |
#define kAPIEndpointHost @"http://example.dev" | |
#else | |
#define kAPIEndpointHost @"http://www.example.com" | |
#endif | |
#define kAPIEndpointLatest (kAPIEndpointHost @"/api/latest_content") | |
#define kAPIEndpointMostPopular (kAPIEndpointHost @"/api/most_popular") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment