Last active
September 5, 2018 09:19
-
-
Save neverunlucky/46b39e989b150933b3c5c50f895bac2e to your computer and use it in GitHub Desktop.
Obj-C Line Break String
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
#define __line_break_string__(s) #s | |
NSString *str = @__line_break_string__( | |
foo | |
bar | |
hello\nworld | |
); | |
#undef __line_break_string__ | |
/* | |
foo bar hello | |
world | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment